diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-05-18 18:35:13 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-06-09 11:44:24 +0200 |
| commit | 959d6de1a928061256bb845025597be11ddca2ea (patch) | |
| tree | 18d17efbdd2c330cb8d7793df929261fb548c11b /tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs | |
| parent | 52882f6522ae9f34f1d574b2efabc4b18e691ae0 (diff) | |
| download | rust-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.rs | 4 |
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() {} |
