-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
interpret region vars as universals in implied bounds query #109388
Conversation
in implied bounds query
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
@aliemjay: 🔑 Insufficient privileges: not in try users |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 4be4829 with merge 6a52a02ebbfeb6f8adfd1aa63e64a290f201d98c... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (6a52a02ebbfeb6f8adfd1aa63e64a290f201d98c): 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)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.
CyclesResultsThis 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.
|
we talked about this in sync at some point 😅 this is missing an explanatory comment, apart from that r=me |
@aliemjay what's the status of this? this was blocked on a pr that's now closed but it was close to being approved |
Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks |
Implied bounds query is different to other canonical trait queries in that we should treat all region variables as universals. This fixes #106569.
To illustrate the problem in #106569:
implied_outlives_bounds(Canonical<Equal<'^1, '^2>)
implied_outlives_bounds(Equal<'?1, '?2>)
'?1 == '?2
during normalization.['?1: '?2, '?2: ?1]
(as expected)['?1: '?1, '?1: '?1]
This PR mitigates this problem by mapping every existential region to a unique universal one before executing the query.
cc @lcnr
r? types