Skip to content

Commit a650904

Browse files
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.
2 parents 9b6ed6f + 045f1dc commit a650904

0 file changed

File tree

    0 commit comments

    Comments
     (0)