about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-08-24 13:19:31 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-09-08 14:57:28 -0700
commitb82171de5fe2a13a12f35ce4368ef34a477f55c4 (patch)
treece6c2877457a1b1fa6af9582bdf36140a368d052 /compiler/rustc_passes/src
parent5dbe099dd3b9abb13cd63f8655e495f7a8d1bfcb (diff)
downloadrust-b82171de5fe2a13a12f35ce4368ef34a477f55c4.tar.gz
rust-b82171de5fe2a13a12f35ce4368ef34a477f55c4.zip
port `#[pattern_complexity_limit]` to the new attribute parsing infrastructure
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/check_attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index e69071c73e1..487bdd2a888 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -273,6 +273,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
                     | AttributeKind::RecursionLimit { .. }
                     | AttributeKind::MoveSizeLimit { .. }
                     | AttributeKind::TypeLengthLimit { .. }
+                    | AttributeKind::PatternComplexityLimit { .. }
                 ) => { /* do nothing  */ }
                 Attribute::Unparsed(attr_item) => {
                     style = Some(attr_item.style);