about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
diff options
context:
space:
mode:
authormejrs <59372212+mejrs@users.noreply.github.com>2025-05-18 18:35:13 +0200
committermejrs <59372212+mejrs@users.noreply.github.com>2025-06-09 11:44:24 +0200
commit959d6de1a928061256bb845025597be11ddca2ea (patch)
tree18d17efbdd2c330cb8d7793df929261fb548c11b /tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
parent52882f6522ae9f34f1d574b2efabc4b18e691ae0 (diff)
downloadrust-959d6de1a928061256bb845025597be11ddca2ea.tar.gz
rust-959d6de1a928061256bb845025597be11ddca2ea.zip
refactor `AttributeGate` and `rustc_attr!` to emit notes during feature checking
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs b/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
index d1f6f4755f0..ffb444cd9aa 100644
--- a/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
+++ b/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
@@ -1,6 +1,8 @@
 // check that `pattern_complexity_limit` is feature-gated
 
 #![pattern_complexity_limit = "42"]
-//~^ ERROR: the `#[pattern_complexity_limit]` attribute is just used for rustc unit tests
+//~^ ERROR: use of an internal attribute [E0658]
+//~| NOTE the `#[pattern_complexity_limit]` attribute is an internal implementation detail that will never be stable
+//~| NOTE: the `#[pattern_complexity_limit]` attribute is used for rustc unit tests
 
 fn main() {}