File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ use crate::macro_call_as_call_id_with_eager;
1717use crate :: nameres:: mod_resolution:: ModDir ;
1818
1919use crate :: item_tree:: ItemTree ;
20- use base_db:: { CrateId , Dependency , FileId } ;
21- use cfg:: { CfgExpr , CfgOptions } ;
2220
2321use crate :: item_tree:: TreeId ;
2422
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ pub(crate) fn parse_with_map(
340340 }
341341}
342342/// This is just to ensure the types of smart_macro_arg and macro_arg are the same
343- type MacroArgResult = ( Arc < tt:: Subtree > , SyntaxFixupUndoInfo , Span ) ;
343+ type MacroArgResult = ( Arc < tt:: Subtree > , SyntaxFixupUndoInfo , Span ) ;
344344/// Imagine the word smart in quotes.
345345///
346346/// This resolves the [MacroCallId] to check if it is a derive macro if so get the [macro_arg] for the derive.
@@ -553,8 +553,7 @@ fn macro_expand(
553553 let ( ExpandResult { value : tt, err } , span) = match loc. def . kind {
554554 MacroDefKind :: ProcMacro ( ..) => return db. expand_proc_macro ( macro_call_id) . map ( CowArc :: Arc ) ,
555555 _ => {
556- let ( macro_arg, undo_info, span) =
557- smart_macro_arg ( db, macro_call_id) ;
556+ let ( macro_arg, undo_info, span) = smart_macro_arg ( db, macro_call_id) ;
558557
559558 let arg = & * macro_arg;
560559 let res =
You can’t perform that action at this time.
0 commit comments