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/inline.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/inline.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/attributes/inline.rs | 2 |
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; } } |
