File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,11 @@ pub fn find_builtin_macro(
43
43
if ident == & name:: COLUMN_MACRO {
44
44
Some ( MacroDefId { krate, ast_id, kind : MacroDefKind :: BuiltIn ( BuiltinExpander :: Column ) } )
45
45
} else if ident == & name:: COMPILE_ERROR_MACRO {
46
- Some ( MacroDefId { krate, ast_id, kind : MacroDefKind :: BuiltIn ( BuiltinExpander :: CompileError ) } )
46
+ Some ( MacroDefId {
47
+ krate,
48
+ ast_id,
49
+ kind : MacroDefKind :: BuiltIn ( BuiltinExpander :: CompileError ) ,
50
+ } )
47
51
} else if ident == & name:: FILE_MACRO {
48
52
Some ( MacroDefId { krate, ast_id, kind : MacroDefKind :: BuiltIn ( BuiltinExpander :: File ) } )
49
53
} else if ident == & name:: LINE_MACRO {
@@ -188,10 +192,10 @@ fn compile_error_expand(
188
192
if s. starts_with ( r#"""# ) && s. ends_with ( r#"""# ) {
189
193
return Ok ( quote ! { loop { #it } } ) ;
190
194
}
191
- } ,
192
- _ => { } ,
195
+ }
196
+ _ => { }
193
197
} ;
194
198
}
195
199
196
200
Err ( mbe:: ExpandError :: BindingError ( "Must be a string" . into ( ) ) )
197
- }
201
+ }
You can’t perform that action at this time.
0 commit comments