1
Fork 0

Shorten Span of unused macro lints

The span has been recuded to the actual ident, instead of linting the
*whole* macro.
This commit is contained in:
Marcel Hellwig 2021-11-10 12:00:46 +01:00
parent 9dbbbb12c0
commit 9f6ca7482c
7 changed files with 41 additions and 62 deletions

View file

@ -988,7 +988,7 @@ pub struct Resolver<'a> {
non_macro_attr: Lrc<SyntaxExtension>,
local_macro_def_scopes: FxHashMap<LocalDefId, Module<'a>>,
ast_transform_scopes: FxHashMap<LocalExpnId, Module<'a>>,
unused_macros: FxHashMap<LocalDefId, (NodeId, Span)>,
unused_macros: FxHashMap<LocalDefId, (NodeId, Ident)>,
proc_macro_stubs: FxHashSet<LocalDefId>,
/// Traces collected during macro resolution and validated when it's complete.
single_segment_macro_resolutions: