-
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
Yeet QueryTypeRelatingDelegate
, move NllTypeRelating
into borrowck crate
#121321
Yeet QueryTypeRelatingDelegate
, move NllTypeRelating
into borrowck crate
#121321
Conversation
Type relation code was changed |
@@ -84,7 +84,7 @@ impl<'me, 'bccx, 'tcx> NllTypeRelatingDelegate<'me, 'bccx, 'tcx> { | |||
} | |||
} | |||
|
|||
impl<'tcx> TypeRelatingDelegate<'tcx> for NllTypeRelatingDelegate<'_, '_, 'tcx> { | |||
impl<'tcx> NllTypeRelatingDelegate<'tcx> for NllNllTypeRelatingDelegate<'_, '_, 'tcx> { |
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 is now the only NllTypeRelatingDelegate
in existance, just stop using a delegate and inline this into the relation? That does require moving the whole relation to rustc_borrowck
which... does that cause some privacy issues?
Also... NllNllTypeRelatingDelegate
looks horrible 😅 maybe just name the struct `TypeRelatingDelegate' or sth, given that it's in borrowck so clearly for nll
i am in generally in favor of this change
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.
NllNll was a typo, lol
I just inlined the whole thing into borrowck
45c5586
to
9b1f9ed
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.
two existing nits, then r=me
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…ng, r=<try> Yeet `QueryTypeRelatingDelegate` We can just use the existing equate relation for query instantiation. I don't expect us to want to move everything into `TypeRelating`. r? lcnr
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (381aeee): 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. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 641.255s -> 640.328s (-0.14%) |
9b1f9ed
to
2415d43
Compare
2415d43
to
64d6303
Compare
QueryTypeRelatingDelegate
QueryTypeRelatingDelegate
, move NllTypeRelating
into borrowck crate
.dcx() | ||
.span_bug(self.delegate.span(), format!("unexpected inference var {b:?}")); | ||
} | ||
// FIXME(invariance): see the related FIXME above. |
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 don't believe this FIXME makes sense anymore, so I removed it.
@bors r=lcnr |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d7bd9cd): 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: 649.979s -> 649.698s (-0.04%) |
We can just use the existing equate relation for query instantiation. I don't expect us to want to move everything into
TypeRelating
.r? lcnr