rust/tests
llogiq 11fe0c69b4
Fix LimitStack::pop_atr in release builds (#16371)
in `LimitStack::pop_atr` always call `stack.pop()`.
It used to only be called inside a `debug_assert!` so the stack was not
popped in release builds.

Running `TESTNAME=cognitive_complexity cargo uitest --release` used to
print
```
error: there was 1 unmatched diagnostic
   --> tests/ui/cognitive_complexity.rs:121:4
    |
121 | fn bloo() {
    |    ^^^^ Error[clippy::cognitive_complexity]: the function has a cognitive complexity
 of (2/1)
    |
```

The first commit adds to the ui test, which also fails in release, the
2nd commit fixes the tests.

changelog: [`cognitive_complexity`]: fix attribute stack not popping in
release builds
2026-01-09 20:14:30 +00:00
..
test_utils
ui Fix LimitStack::pop_atr in release builds (#16371) 2026-01-09 20:14:30 +00:00
ui-cargo Merge commit 'd9fb15c4b1' into clippy-subtree-update 2025-10-16 20:38:28 +02:00
ui-internal Merge commit '99edcadfd5' into clippy-subtree-update 2025-12-25 23:24:43 +01:00
ui-toml missing_enforced_import_rename: Do not enforce for underscores 2026-01-07 17:29:11 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs miri: add -Zbinary-dep-depinfo to dependency builds 2025-12-11 18:56:45 +01:00
config-consistency.rs Merge commit 'e9b70454e4' into clippy-subtree-update 2025-09-04 18:27:27 -04:00
config-metadata.rs
dogfood.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs Apply cfg(bootstrap) replacement 2025-09-26 19:09:23 -04:00
no-profile-in-cargo-toml.rs Merge commit '20ce69b9a6' into clippy-subtree-update 2025-09-18 17:21:44 +02:00
symbols-used.rs Merge commit 'd9fb15c4b1' into clippy-subtree-update 2025-10-16 20:38:28 +02:00
versioncheck.rs
workspace.rs