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.
This commit is contained in:
Vadim Petrochenkov 2025-08-01 21:55:11 +03:00
parent 6f34f4ee07
commit f89660e4aa
12 changed files with 39 additions and 15 deletions

View file

@ -46,7 +46,6 @@
#![deny(unsafe_op_in_unsafe_fn)]
extern crate alloc;
extern crate test;
use std::hash::{DefaultHasher, Hash, Hasher};