-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Remove predicate queries #129532
Remove predicate queries #129532
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…ries, r=<try> Remove predicate queries Removes: * `predicates_defined_on` - Not necessary. Literally unused. * `trait_explicit_predicates_and_bounds` - Not necessary technically. The side-effect of this is that we now don't remove `where Self::Assoc: Bound` item bounds from the where clauses of traits. This may require more trait solving to be done, but should be fine. Let's see what the fallout of this is. r? `@ghost`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (8104373): 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)Results (primary -0.8%, secondary -4.0%)This 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.
CyclesResults (secondary -2.4%)This 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 750.904s -> 750.388s (-0.07%) |
:3 r? lcnr ill leave this to them for a vibe check when theyre back |
…-dead Get rid of `predicates_defined_on` This is the uncontroversial part of rust-lang#129532. This simply inlines the `predicates_defined_on` into into `predicates_of`. Nothing should change here logically.
…-dead Get rid of `predicates_defined_on` This is the uncontroversial part of rust-lang#129532. This simply inlines the `predicates_defined_on` into into `predicates_of`. Nothing should change here logically.
Get rid of `predicates_defined_on` This is the uncontroversial part of rust-lang#129532. This simply inlines the `predicates_defined_on` into into `predicates_of`. Nothing should change here logically.
Get rid of `predicates_defined_on` This is the uncontroversial part of rust-lang#129532. This simply inlines the `predicates_defined_on` into into `predicates_of`. Nothing should change here logically.
Get rid of `predicates_defined_on` This is the uncontroversial part of rust-lang#129532. This simply inlines the `predicates_defined_on` into into `predicates_of`. Nothing should change here logically.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…ries, r=<try> Remove predicate queries Removes: * `predicates_defined_on` - Not necessary. Literally unused. * `trait_explicit_predicates_and_bounds` - Not necessary technically. The side-effect of this is that we now don't remove `where Self::Assoc: Bound` item bounds from the where clauses of traits. This may require more trait solving to be done, but should be fine. Let's see what the fallout of this is. r? `@ghost`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (2e9a6da): 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)Results (primary -2.1%, secondary 2.2%)This 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: 752.822s -> 753.788s (0.13%) |
OK, well no perf by itself but it removes a major source of confusion in what's required to prove vs what we can assume whatever IMO. |
8ca62f0
to
590dbe7
Compare
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.
I worry that this is a theoretical breaking change with the current cycle semantics.
Something like this probably won't cause issues, because this change is only impacting trait where-clauses.
trait Bound {}
trait Trait
where
Self::Assoc: Bound,
{
type Assoc;
}
impl<T: Bound> Trait for T {
type Assoc = T;
}
impl<T: Trait> Bound for T {}
I don't think we currently use predicates_of
of the trait inside of the trait solver, so this should be alright? Would have to look at all the use-sites to make sure of that though 😅
☔ The latest upstream changes (presumably #132027) made this pull request unmergeable. Please resolve the merge conflicts. |
we talked about this at some point, I think we ended up at r=me with
being resolved |
Both solvers use The new solver does not call The old solver
|
Removes:
Get rid ofpredicates_defined_on
- Not necessary. Literally unused.predicates_defined_on
#129546trait_explicit_predicates_and_bounds
- Not necessary technically. The side-effect of this is that we now don't removewhere Self::Assoc: Bound
item bounds from the where clauses of traits. This may require more trait solving to be done, but should be fine. Let's see what the fallout of this is.r? @ghost