Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #153187 - is57primenumber:fix-ice-on-shadowing, r=petrochenkov
Fix ICE when macro-expanded extern crate shadows std Fixes rust-lang/rust#152895 This PR fixes an ICE that occurs when a macro-expanded `extern crate` shadows a prelude name, which leaves the resolver in an inconsistent state due to `issue_145575_hack`. I disabled the assertion when the `issue_145575_hack` flag is enabled. The fix is applied in two locations to cover both cases (whether `is_error_from_last_segment` is true or false). This approach was inspired by the context and fix discussed in rust-lang/rust#151213.
Jonathan Brouwer 8 weeks ago
parent 9b6ed6f · parent 045f1dc · commit a650904
0 files changed, 0 insertions, 0 deletions