diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-08-11 11:46:30 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-16 10:51:09 +0200 |
| commit | 70e26c1b7bd4e9f8ba610de6dca2d74ab233cb64 (patch) | |
| tree | a8fb911385eafee0361851fbffa06296429e3229 /compiler/rustc_attr_parsing/src/attributes/inline.rs | |
| parent | 1ae7c4907275f10b3db9e886bc8809ec063e45ee (diff) | |
| download | rust-70e26c1b7bd4e9f8ba610de6dca2d74ab233cb64.tar.gz rust-70e26c1b7bd4e9f8ba610de6dca2d74ab233cb64.zip | |
take attr style into account 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/inline.rs b/compiler/rustc_attr_parsing/src/attributes/inline.rs index 6a659a95b85..33c21bad240 100644 --- a/compiler/rustc_attr_parsing/src/attributes/inline.rs +++ b/compiler/rustc_attr_parsing/src/attributes/inline.rs @@ -62,8 +62,8 @@ impl<S: Stage> SingleAttributeParser<S> for InlineParser { } } ArgParser::NameValue(_) => { - let suggestions = - <Self as SingleAttributeParser<S>>::TEMPLATE.suggestions(false, "inline"); + let suggestions = <Self as SingleAttributeParser<S>>::TEMPLATE + .suggestions(cx.attr_style, "inline"); let span = cx.attr_span; cx.emit_lint(AttributeLintKind::IllFormedAttributeInput { suggestions }, span); return None; |
