Uh oh!
There was an error while loading. Please reload this page.
Simplify universal impl trait lowering - #97598
Conversation
Uh oh!
There was an error while loading. Please reload this page.
cjgillot
left a comment
There was a problem hiding this comment.
Thanks @spastorino! I left a few questions.
| /// | ||
| /// Newly generated parameters should be inserted into the given `Vec`. | ||
| Universal(&'b mut Vec<hir::GenericParam<'a>>, &'b mut Vec<hir::WherePredicate<'a>>, LocalDefId), | ||
| Universal(LocalDefId), |
There was a problem hiding this comment.
Is this LocalDefId always equal to self.current_hir_id_owner, or can there be a mismatch?
There was a problem hiding this comment.
I think so but maybe worth checking. Do you think I should check that in this PR? or should we leave this for a followup?
There was a problem hiding this comment.
Ok, I've just checked this and yes, it's always equal. We are always creating Universal passing self.current_hir_id_owner to it.
| } | ||
| impl<'a> ImplTraitContext<'_, 'a> { | ||
| fn reborrow<'this>(&'this mut self) -> ImplTraitContext<'this, 'a> { |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This comment has been minimized.
This comment has been minimized.
793aca9 to
67deaf9Comparecjgillot
commented
Jun 1, 2022
@bors try @rust-timer queue |
rust-timer
commented
Jun 1, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Jun 1, 2022
⌛ Trying commit 15a82d6 with merge 769c5ef1e28f2107770e476529d9aa7305a01e2c... |
bors
commented
Jun 1, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
Jun 1, 2022
Queued 769c5ef1e28f2107770e476529d9aa7305a01e2c with parent 8256e97, future comparison URL. |
rust-timer
commented
Jun 1, 2022
Finished benchmarking commit (769c5ef1e28f2107770e476529d9aa7305a01e2c): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 Footnotes |
cjgillot
commented
Jun 2, 2022
@bors r+ |
bors
commented
Jun 2, 2022
📌 Commit 15a82d6 has been approved by |
bors
commented
Jun 2, 2022
bors
commented
Jun 3, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Jun 3, 2022
Finished benchmarking commit (42bcd41): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Closes#96644
r? @cjgillot