Skip to content

Commit 283aad0

Browse files
committed
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 rust-lang/rust#144793 (comment).
1 parent 7d80c15 commit 283aad0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/useless_attribute.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub mod redundant_imports_issue {
153153
() => {};
154154
}
155155

156-
#[expect(redundant_imports)]
156+
#[expect(unused_imports)]
157157
pub(crate) use empty;
158158

159159
empty!();

tests/ui/useless_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub mod redundant_imports_issue {
153153
() => {};
154154
}
155155

156-
#[expect(redundant_imports)]
156+
#[expect(unused_imports)]
157157
pub(crate) use empty;
158158

159159
empty!();

0 commit comments

Comments
 (0)