-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Allow escaping bound vars during normalize_erasing_regions
in new solver
#113471
Allow escaping bound vars during normalize_erasing_regions
in new solver
#113471
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels a bit meh as AllowEscapingBoundVars
should really be contained to fn query_normalize
I think, would the following work:
- add
deeply_normalize_with_skipped_universes
which takes aVec<Option<UniverseIndex>>
as argument. - rework
fn query_normalize
to first compute the skipped universes and then either use them as args todeeply_normalize
or for theQueryNormalizer
Yeah that works. |
cd53aa0
to
cef10c3
Compare
@bors try @rust-timer queue r=me after perf is green, iirc |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 7cb69bac0cc10833ef65e41c3eaafdff9d6653c4 with merge a7f5f14571289eb2d96c1311ba51e7c30f11a1b7... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (a7f5f14571289eb2d96c1311ba51e7c30f11a1b7): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 658.307s -> 657.607s (-0.11%) |
7cb69ba
to
1ef85d8
Compare
@bors r=lcnr |
☀️ Test successful - checks-actions |
Finished benchmarking commit (ad96323): 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)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 658.477s -> 657.64s (-0.13%) |
Add
AllowEscapingBoundVars
todeeply_normalize
, and use it in the new solver in thequery_normalize
routine.Ideally, we'd make all
query_normalize
calls handle pass inAllowEscapingBoundVars
individually, because really the onlyquery_normalize
call that needsAllowEscapingBoundVars::Yes
is the one intry_normalize_generic_arg_after_erasing_regions
, but I think that's kind of overkill. I am happy to be convinced otherwise, though.r? @lcnr