-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Support non-defining uses in HIR typeck #145711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
compiler/rustc_next_trait_solver/src/solve/normalizes_to/opaque_types.rs
Show resolved
Hide resolved
compiler/rustc_next_trait_solver/src/solve/normalizes_to/opaque_types.rs
Show resolved
Hide resolved
compiler/rustc_next_trait_solver/src/solve/normalizes_to/opaque_types.rs
Outdated
Show resolved
Hide resolved
☔ The latest upstream changes (presumably #145469) made this pull request unmergeable. Please resolve the merge conflicts. |
a78b9d1
to
da0cc61
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
erase regions also anonymizes bound vars, which is undesirable
e08e9d6
to
4ca8028
Compare
4ca8028
to
d6a18e1
Compare
@bors r=BoxyUwU rollup=never |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors r=BoxyUwU |
💡 This pull request was already approved, no need to approve it again.
|
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry |
This changes the impl of
NormalizesTo
for opaque types to be structural during HIR typeck. The previous impl equated region variables of the opaque type key with existing entries which can result in spurious leak check errors and also results in mismatches with MIR borrowck, theoretically causing ICE.The approach is very similar to #145244 in MIR typeck:
Fixes rust-lang/trait-system-refactor-initiative#135, fixes rust-lang/trait-system-refactor-initiative#49.
r? @BoxyUwU