diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-08-01 21:55:11 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-09-25 20:36:14 +0300 |
| commit | f89660e4aa018401ca993f0df190e5f4c4a6799b (patch) | |
| tree | 6dcf4590f3e62fb704208b16306abbc339d8823c /src/tools/clippy | |
| parent | 6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 (diff) | |
| download | rust-f89660e4aa018401ca993f0df190e5f4c4a6799b.tar.gz rust-f89660e4aa018401ca993f0df190e5f4c4a6799b.zip | |
resolve: Do not finalize shadowed bindings
I.e. do not mark them as used, or non-speculative loaded, or similar. Previously they were sometimes finalized during early resolution, causing issues like https://github.com/rust-lang/rust/pull/144793#issuecomment-3168108005.
Diffstat (limited to 'src/tools/clippy')
| -rw-r--r-- | src/tools/clippy/tests/ui/useless_attribute.fixed | 2 | ||||
| -rw-r--r-- | src/tools/clippy/tests/ui/useless_attribute.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/useless_attribute.fixed b/src/tools/clippy/tests/ui/useless_attribute.fixed index 15070dd9c2c..e0bc23e0788 100644 --- a/src/tools/clippy/tests/ui/useless_attribute.fixed +++ b/src/tools/clippy/tests/ui/useless_attribute.fixed @@ -153,7 +153,7 @@ pub mod redundant_imports_issue { () => {}; } - #[expect(redundant_imports)] + #[expect(unused_imports)] pub(crate) use empty; empty!(); diff --git a/src/tools/clippy/tests/ui/useless_attribute.rs b/src/tools/clippy/tests/ui/useless_attribute.rs index 3f530de7fd8..30a4c354b23 100644 --- a/src/tools/clippy/tests/ui/useless_attribute.rs +++ b/src/tools/clippy/tests/ui/useless_attribute.rs @@ -153,7 +153,7 @@ pub mod redundant_imports_issue { () => {}; } - #[expect(redundant_imports)] + #[expect(unused_imports)] pub(crate) use empty; empty!(); |
