diff options
| author | bors <bors@rust-lang.org> | 2025-07-15 08:38:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-15 08:38:13 +0000 |
| commit | a9fb6103b05c6ad6eee6bed4c0bb5a2e8e1024c6 (patch) | |
| tree | 635bf7b454df9fe8fbb5d76d8f75102f59e33b6b /compiler/rustc_lint/src | |
| parent | 7f2065a4bae1faed5bab928c670964eafbf43b55 (diff) | |
| parent | 7a7c74ad89df9f87824fa17fbbe0448d9ab6f7cc (diff) | |
| download | rust-a9fb6103b05c6ad6eee6bed4c0bb5a2e8e1024c6.tar.gz rust-a9fb6103b05c6ad6eee6bed4c0bb5a2e8e1024c6.zip | |
Auto merge of #143460 - JonathanBrouwer:cfg_parser, r=jdonszelmann
Port `#[cfg]` to the new attribute parsing infrastructure Ports `#[cfg]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197 I've split this PR into commits for reviewability, and left some comments to clarify things
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/nonstandard_style.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/nonstandard_style.rs b/compiler/rustc_lint/src/nonstandard_style.rs index bc9badbb232..db89396d1dc 100644 --- a/compiler/rustc_lint/src/nonstandard_style.rs +++ b/compiler/rustc_lint/src/nonstandard_style.rs @@ -167,7 +167,7 @@ impl NonCamelCaseTypes { impl EarlyLintPass for NonCamelCaseTypes { fn check_item(&mut self, cx: &EarlyContext<'_>, it: &ast::Item) { let has_repr_c = matches!( - AttributeParser::parse_limited(cx.sess(), &it.attrs, sym::repr, it.span, it.id), + AttributeParser::parse_limited(cx.sess(), &it.attrs, sym::repr, it.span, it.id, None), Some(Attribute::Parsed(AttributeKind::Repr { reprs, ..})) if reprs.iter().any(|(r, _)| r == &ReprAttr::ReprC) ); |
