diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-03-21 18:14:27 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-03-21 18:25:29 +0300 |
| commit | 0ac2801f25335b017da63f3bff1c2b46a39ee12d (patch) | |
| tree | b0127c3259a0a0e41b4be09e801f9827d7d8ef39 /compiler/rustc_expand/src/expand.rs | |
| parent | 4ac032f857b46037b55c1fc0fa702450aad37f43 (diff) | |
| download | rust-0ac2801f25335b017da63f3bff1c2b46a39ee12d.tar.gz rust-0ac2801f25335b017da63f3bff1c2b46a39ee12d.zip | |
expand: Do not report `cfg_attr` traces on macros as unused attributes
Diffstat (limited to 'compiler/rustc_expand/src/expand.rs')
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index 87f01be26c2..e2a55752850 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -1941,7 +1941,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> { let attr_name = attr.ident().unwrap().name; // `#[cfg]` and `#[cfg_attr]` are special - they are // eagerly evaluated. - if attr_name != sym::cfg && attr_name != sym::cfg_attr { + if attr_name != sym::cfg && attr_name != sym::cfg_attr_trace { self.cx.sess.psess.buffer_lint( UNUSED_ATTRIBUTES, attr.span, |
