about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/attributes/test_attrs.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/test_attrs.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/test_attrs.rs')
-rw-r--r--compiler/rustc_attr_parsing/src/attributes/test_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/test_attrs.rs b/compiler/rustc_attr_parsing/src/attributes/test_attrs.rs
index 2b01c09ab96..510ff1ded49 100644
--- a/compiler/rustc_attr_parsing/src/attributes/test_attrs.rs
+++ b/compiler/rustc_attr_parsing/src/attributes/test_attrs.rs
@@ -81,7 +81,7 @@ impl<S: Stage> SingleAttributeParser<S> for ShouldPanicParser {
                         return None;
                     };
                     if !single.path().word_is(sym::expected) {
-                        cx.expected_specific_argument_strings(list.span, vec!["expected"]);
+                        cx.expected_specific_argument_strings(list.span, &[sym::expected]);
                         return None;
                     }
                     let Some(nv) = single.args().name_value() else {