File tree 2 files changed +36
-16
lines changed 2 files changed +36
-16
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ register_builtin! {
113
113
( cfg, Cfg ) => cfg_expand,
114
114
( core_panic, CorePanic ) => panic_expand,
115
115
( std_panic, StdPanic ) => panic_expand,
116
+ ( log_syntax, LogSyntax ) => log_syntax_expand,
117
+ ( trace_macros, TraceMacros ) => trace_macros_expand,
116
118
117
119
EAGER :
118
120
( compile_error, CompileError ) => compile_error_expand,
@@ -148,6 +150,22 @@ fn line_expand(
148
150
ExpandResult :: ok ( expanded)
149
151
}
150
152
153
+ fn log_syntax_expand (
154
+ _db : & dyn AstDatabase ,
155
+ _id : MacroCallId ,
156
+ _tt : & tt:: Subtree ,
157
+ ) -> ExpandResult < tt:: Subtree > {
158
+ ExpandResult :: ok ( quote ! { } )
159
+ }
160
+
161
+ fn trace_macros_expand (
162
+ _db : & dyn AstDatabase ,
163
+ _id : MacroCallId ,
164
+ _tt : & tt:: Subtree ,
165
+ ) -> ExpandResult < tt:: Subtree > {
166
+ ExpandResult :: ok ( quote ! { } )
167
+ }
168
+
151
169
fn stringify_expand (
152
170
_db : & dyn AstDatabase ,
153
171
_id : MacroCallId ,
Original file line number Diff line number Diff line change @@ -226,28 +226,30 @@ pub mod known {
226
226
len,
227
227
is_empty,
228
228
// Builtin macros
229
- file,
229
+ asm,
230
+ assert,
230
231
column,
231
- const_format_args,
232
232
compile_error,
233
- line,
234
- module_path,
235
- assert,
236
- core_panic,
237
- std_panic,
238
- stringify,
239
- concat,
240
233
concat_idents,
241
- include,
234
+ concat,
235
+ const_format_args,
236
+ core_panic,
237
+ env,
238
+ file,
239
+ format_args_nl,
240
+ format_args,
241
+ global_asm,
242
242
include_bytes,
243
243
include_str,
244
- format_args,
245
- format_args_nl,
246
- env,
247
- option_env,
244
+ include,
245
+ line,
248
246
llvm_asm,
249
- asm,
250
- global_asm,
247
+ log_syntax,
248
+ module_path,
249
+ option_env,
250
+ std_panic,
251
+ stringify,
252
+ trace_macros,
251
253
// Builtin derives
252
254
Copy ,
253
255
Clone ,
You can’t perform that action at this time.
0 commit comments