-
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
Do not register placeholder RegionOutlives
obligations when considering_regions
is false
#102945
Do not register placeholder RegionOutlives
obligations when considering_regions
is false
#102945
Conversation
Should we eventually beta-nominate the fix as well? The ice-code doesn't use any nightly only features as far as I seen and I was able to reproduce #102899 on beta too. |
i think i added the special-case for placeholders because of the leak-check for which we have to care about placeholders, even when not doing regionck. Even when rewriting rustc to replace the leak-check, we will still have to care about placeholders. However, fulfill currently doesn't rely on the leak-check right now, because it's never used in any place where the leak-check is used. And even if we did use it, currently evaluate uses the leak check but it doesn't add region constraints for So yeah, the current setup sucks but your PR doesn't make stuff worse. cc @nikomatsakis for the above comment. r=me |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 3021598 with merge 25fac99eb1c69846b65127999dd084d21bcfd8f8... |
☀️ Try build successful - checks-actions |
Queued 25fac99eb1c69846b65127999dd084d21bcfd8f8 with parent 1536ab1, future comparison URL. |
Finished benchmarking commit (25fac99eb1c69846b65127999dd084d21bcfd8f8): 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.
CyclesThis benchmark run did not return any relevant results for this metric. Footnotes |
@bors r+ rollup=always |
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#102454 (Suggest parentheses for possible range method calling) - rust-lang#102466 (only allow `ConstEquate` with `feature(gce)`) - rust-lang#102945 (Do not register placeholder `RegionOutlives` obligations when `considering_regions` is false) - rust-lang#103091 (rustdoc: remove unused HTML class `sidebar-title`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
NOTE: I'm kinda just putting this up for discussion. I'm not certain this is correct...?
This was introduced in
608625d
.Interestingly, we only check
data.has_placeholders()
forRegionOutlives
, and not forTypeOutlives
... why? For the record, that different treatment betweenRegionOutlives
andTypeOutlives
is why the fix "The compiling succeeds when all'a : 'b
are replaced with&'a () : 'b
" in #100689 "works", but it seems like an implementation detail considering this.Also, why do we care about placeholder regions being registered if
considering_regions
is false? It doesn't seem to affect any UI tests, for example.r? @lcnr
Fixes #102899
Fixes #100689