diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-26 18:11:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 18:11:08 +0200 |
| commit | f104ae4252b1f508e5b4a8193954ab518091b2c0 (patch) | |
| tree | 7d3711f3df62c0e800519fbada2657038697ce1f /tests/ui/resolve/unused-macro-import.stderr | |
| parent | a8858111044a9391ac7558f969d3bf62ef43222d (diff) | |
| parent | f89660e4aa018401ca993f0df190e5f4c4a6799b (diff) | |
| download | rust-f104ae4252b1f508e5b4a8193954ab518091b2c0.tar.gz rust-f104ae4252b1f508e5b4a8193954ab518091b2c0.zip | |
Rollup merge of #145113 - petrochenkov:lessfinalize, r=lcnr
resolve: Do not finalize shadowed bindings I.e. do not mark them as used, or non-speculatively 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 'tests/ui/resolve/unused-macro-import.stderr')
| -rw-r--r-- | tests/ui/resolve/unused-macro-import.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/resolve/unused-macro-import.stderr b/tests/ui/resolve/unused-macro-import.stderr new file mode 100644 index 00000000000..5f9813808a0 --- /dev/null +++ b/tests/ui/resolve/unused-macro-import.stderr @@ -0,0 +1,14 @@ +warning: unused import: `crate::mac` + --> $DIR/unused-macro-import.rs:10:9 + | +LL | use crate::mac; + | ^^^^^^^^^^ + | +note: the lint level is defined here + --> $DIR/unused-macro-import.rs:3:9 + | +LL | #![warn(unused_imports)] + | ^^^^^^^^^^^^^^ + +warning: 1 warning emitted + |
