mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
a34ceade11
Revert #112758 and add test case Fixes #112831. Cannot unwrap `update_resolution` for `resolution.single_imports.remove(&Interned::new_unchecked(import));` because there is a relationship between the `Import` and `&NameBinding` in `NameResolution`. This issue caused by my unfamiliarity with the data structure and I apologize for it. This PR had been reverted, and test case have been added. r? `@Nilstrieb` cc `@petrochenkov`