-
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
Revert 133858 due to perf regression #135263
base: master
Are you sure you want to change the base?
Conversation
Ok, this is going to miss the nightly cutoff but it's fine. |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
fml |
As long as this doesnt miss the beta cut off in like a month its technically fine right? It's "only" a 20% regression to some crates on nightly |
The revert doesn't apply cleanly since #134523 landed in the meantime. I've rebased to fix the conflicts, hopefully correctly to change the new code from #134523 to match the pre-revert state -- and #133858 landing also created conflicts for #134523. It's conflict city over here. That will make #134523's beta backport harder...
Maybe not fine per se, but in a sense yes, and in another sense less so: if another perf run had been done pre-merge, the PR likely wouldn't have landed yet. A revert was requested and we usually are revert-happy: it's usually easier to investigate issues without any additional time pressure on the author. |
Ah right... merge conflicts |
This code should generally be slow-moving, but yes it'd be nice if not too much code started relying on #133858. |
@@ -1207,7 +1206,15 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> { | |||
borrowed, | |||
|diag| { | |||
session_diagnostics::TailExprDropOrder { borrowed }.decorate_lint(diag); | |||
explain.add_explanation_to_diagnostic(&this, diag, "", None, None); | |||
explain.add_explanation_to_diagnostic( | |||
this.infcx.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.
Ya this is right.
This PR prepares a revert of #133858 due to the unexpected perf regressions.
cc PR author @dianne and reviewer @lcnr
Opening as draft to leave some time for @dianne to take a look in case the fix is obvious. If not, or if they don't have time to look into it soon, we can land this revert. Once the issue is fixed in the original PR we can reland it with ease.