@@ -78,7 +78,7 @@ pub fn find_builtin_macro(
78
78
79
79
register_builtin ! {
80
80
LAZY :
81
- ( column, Column ) => column_expand ,
81
+ ( column, Column ) => line_expand ,
82
82
( file, File ) => file_expand,
83
83
( line, Line ) => line_expand,
84
84
( module_path, ModulePath ) => module_path_expand,
@@ -127,11 +127,13 @@ fn line_expand(
127
127
_tt : & tt:: Subtree ,
128
128
) -> ExpandResult < tt:: Subtree > {
129
129
// dummy implementation for type-checking purposes
130
- let expanded = quote ! {
131
- 0 as u32
132
- } ;
133
-
134
- ExpandResult :: ok ( expanded)
130
+ ExpandResult :: ok ( tt:: Subtree {
131
+ delimiter : tt:: Delimiter :: unspecified ( ) ,
132
+ token_trees : vec ! [ tt:: TokenTree :: Leaf ( tt:: Leaf :: Literal ( tt:: Literal {
133
+ text: "0u32" . into( ) ,
134
+ span: tt:: Span :: UNSPECIFIED ,
135
+ } ) ) ] ,
136
+ } )
135
137
}
136
138
137
139
fn log_syntax_expand (
@@ -164,19 +166,6 @@ fn stringify_expand(
164
166
ExpandResult :: ok ( expanded)
165
167
}
166
168
167
- fn column_expand (
168
- _db : & dyn ExpandDatabase ,
169
- _id : MacroCallId ,
170
- _tt : & tt:: Subtree ,
171
- ) -> ExpandResult < tt:: Subtree > {
172
- // dummy implementation for type-checking purposes
173
- let expanded = quote ! {
174
- 0 as u32
175
- } ;
176
-
177
- ExpandResult :: ok ( expanded)
178
- }
179
-
180
169
fn assert_expand (
181
170
_db : & dyn ExpandDatabase ,
182
171
_id : MacroCallId ,
0 commit comments