about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/diagnostics.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-26 09:47:46 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-01 07:34:23 +1100
commita6a6d01bbc93da72474983d355e7442abbd162e8 (patch)
tree3f96eceee40b3fdfd5532e41e5dfaf7393c4fdf5 /compiler/rustc_resolve/src/diagnostics.rs
parent0b45675cfcec57f30a3794e1a1e18423aa9cf200 (diff)
downloadrust-a6a6d01bbc93da72474983d355e7442abbd162e8.tar.gz
rust-a6a6d01bbc93da72474983d355e7442abbd162e8.zip
Use `sym::dummy` in one more place.
It makes it clearer that the symbol is unused and doesn't matter.
Diffstat (limited to 'compiler/rustc_resolve/src/diagnostics.rs')
-rw-r--r--compiler/rustc_resolve/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs
index 63ea8c4ced1..f7343b93281 100644
--- a/compiler/rustc_resolve/src/diagnostics.rs
+++ b/compiler/rustc_resolve/src/diagnostics.rs
@@ -1091,7 +1091,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
                     ));
                 }
                 Scope::BuiltinAttrs => {
-                    let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(kw::Empty));
+                    let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(sym::dummy));
                     if filter_fn(res) {
                         suggestions.extend(
                             BUILTIN_ATTRIBUTES