about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/attributes/inline.rs
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-08-22 20:52:20 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-08-22 22:30:00 +0200
commitf6ac728aadbb997eb08feb0499390c034454f9d5 (patch)
tree1103b0bec140223ad37b881ae9fa49cf492c00b8 /compiler/rustc_attr_parsing/src/attributes/inline.rs
parentf5703d5dd3eec176f86a6e9bf7e668b48b84eabb (diff)
downloadrust-f6ac728aadbb997eb08feb0499390c034454f9d5.tar.gz
rust-f6ac728aadbb997eb08feb0499390c034454f9d5.zip
convert strings to symbols in attr diagnostics
Diffstat (limited to 'compiler/rustc_attr_parsing/src/attributes/inline.rs')
-rw-r--r--compiler/rustc_attr_parsing/src/attributes/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/inline.rs b/compiler/rustc_attr_parsing/src/attributes/inline.rs
index 101fa71b8a6..39d5ff85d9f 100644
--- a/compiler/rustc_attr_parsing/src/attributes/inline.rs
+++ b/compiler/rustc_attr_parsing/src/attributes/inline.rs
@@ -49,7 +49,7 @@ impl<S: Stage> SingleAttributeParser<S> for InlineParser {
                         Some(AttributeKind::Inline(InlineAttr::Never, cx.attr_span))
                     }
                     _ => {
-                        cx.expected_specific_argument(l.span(), vec!["always", "never"]);
+                        cx.expected_specific_argument(l.span(), &[sym::always, sym::never]);
                         return None;
                     }
                 }