about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/levels.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-11 12:01:11 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-12 17:48:50 +0200
commitef82007ed7b7833e3efdec0d80712849048c5c1f (patch)
tree76a8c855164384dd5daa3c36a99fff02aacc00c3 /compiler/rustc_lint/src/levels.rs
parent915e5352448afb3c24f89117468935283bc7d2cf (diff)
downloadrust-ef82007ed7b7833e3efdec0d80712849048c5c1f.tar.gz
rust-ef82007ed7b7833e3efdec0d80712849048c5c1f.zip
Port `#[automatically_derived]` to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_lint/src/levels.rs')
-rw-r--r--compiler/rustc_lint/src/levels.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs
index c72f8571153..16eeb89207b 100644
--- a/compiler/rustc_lint/src/levels.rs
+++ b/compiler/rustc_lint/src/levels.rs
@@ -644,7 +644,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
     ) {
         let sess = self.sess;
         for (attr_index, attr) in attrs.iter().enumerate() {
-            if attr.has_name(sym::automatically_derived) {
+            if attr.is_automatically_derived_attr() {
                 self.insert(
                     LintId::of(SINGLE_USE_LIFETIMES),
                     LevelAndSource {