-
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
compare_impl_item: remove trivial bounds #109491
Conversation
de13d74
to
726eb29
Compare
@bors try @rust-timer queue we may need to add some short-circuiting in the trivial pred fn |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 726eb29ca9eed5bf124f9f92c72abe4a48ffa4cc with merge a370a8bbe1b1266b2436ce1b9a40099992c8b8e5... |
wow, i hate the old trait solver. why do we get overflow here :< |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This actually happens a lot when evaluating method bounds in empty param-envs for some reason 😅 I've seen it in other PRs that attempt to filter thru unused bounds (e.g. in rustdoc) |
Some changes occurred in engine.rs, potentially modifying the public API of |
that's annoying. solving it by using |
6410e68
to
2538c7a
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 2538c7aac8e66b90bb8ce918048e4a47d32128ec with merge c5a9b52fc828502976cf29d7dca61a663cd88100... |
using the empty environment here is suspect because the predicate is probably not well formed, but that shouldn't cause issues apart from considering fewer predicates to be trivial. i guess we could keep all |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Finished benchmarking commit (c5a9b52fc828502976cf29d7dca61a663cd88100): comparison URL. Overall result: ❌✅ regressions and improvements - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
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.
|
This comment has been minimized.
This comment has been minimized.
0e7240f
to
901c816
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 901c81695fb451b3113a79a6f12ea70ff5b0b1bf with merge 14ac41b09e3bb31661451c52b5ed0b7994fcb604... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (14ac41b09e3bb31661451c52b5ed0b7994fcb604): comparison URL. Overall result: ✅ improvements - 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 is a highly reliable metric that was used to determine the overall result at the top of this comment.
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.
|
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.
r=me, fcp needed per discussion
Where was it mentioned that this needs FCP? I'm not sure that it does, given that this should just be a bug fix for the lint. Though, I don't want to land this until we've resolved the discussion in #109356 (#109356 (comment)). |
@jackh726: lcnr said that they wanted to do an FCP on this (though I may be misremembering our convo earlier today). |
901c816
to
97c5793
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 97c5793 with merge 7262b3ee56b5293bbc413e007d1365cea78b5fa0... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
The job Click to see the possible cause of the failure (guessed by this bot)
|
alright, so by extending this to generic types we somehow end up in a case where:
This issue might be because of a I am not completely sure what's going on here and am now convinced that this is too brittle to land, especially with the old solver. Think we should go with the "only prove outlives" approach for now. |
fixes #108544, alternative to #109356
whenever we instantiate a
param_env
with non-identity substs it's very easy to end up with trivial bounds which can cause the trait solver to break :<still needs comments n stuff but I wanted to get this PR up today.
r? types cc @compiler-errors @jackh726