This repository was archived by the owner on May 28, 2025. It is now read-only.
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;
17
17
use crate :: nameres:: mod_resolution:: ModDir ;
18
18
19
19
use crate :: item_tree:: ItemTree ;
20
- use base_db:: { CrateId , Dependency , FileId } ;
21
- use cfg:: { CfgExpr , CfgOptions } ;
22
20
23
21
use crate :: item_tree:: TreeId ;
24
22
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ pub(crate) fn parse_with_map(
340
340
}
341
341
}
342
342
/// 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 ) ;
344
344
/// Imagine the word smart in quotes.
345
345
///
346
346
/// 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(
553
553
let ( ExpandResult { value : tt, err } , span) = match loc. def . kind {
554
554
MacroDefKind :: ProcMacro ( ..) => return db. expand_proc_macro ( macro_call_id) . map ( CowArc :: Arc ) ,
555
555
_ => {
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) ;
558
557
559
558
let arg = & * macro_arg;
560
559
let res =
You can’t perform that action at this time.
0 commit comments