-
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
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 |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 54c5812 (parent) -> d327d65 (this PR) Test differencesShow 32 test diffsStage 1
Stage 2
Additionally, 12 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard d327d651e2583eb601978179f2ca9808f5e243bb --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (d327d65): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 1.6%, secondary 1.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 469.875s -> 466.213s (-0.78%) |
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