diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-08-22 20:52:20 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-22 22:30:00 +0200 |
| commit | f6ac728aadbb997eb08feb0499390c034454f9d5 (patch) | |
| tree | 1103b0bec140223ad37b881ae9fa49cf492c00b8 /compiler/rustc_attr_parsing/src/attributes/test_attrs.rs | |
| parent | f5703d5dd3eec176f86a6e9bf7e668b48b84eabb (diff) | |
| download | rust-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.rs | 2 |
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 { |
