-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix a leak in DiagnosticBuilder::into_diagnostic
.
#69628
Fix a leak in DiagnosticBuilder::into_diagnostic
.
#69628
Conversation
I did a local perf run and the change had absolutely no effect on perf, as you'd hope. I suspect the code in question isn't even run unless an error is issued, which is relatively rare. |
Pretty unfortunate that we cannot just do r=me when #69628 (comment) has resolved itself. |
83b38a5
to
99a595e
Compare
@nnethercote btw, |
Thanks for the tip! The code is cold enough that the additional allocation doesn't matter, I think. But let's double-check that... @bors try @rust-timer queue |
Awaiting bors try build completion |
☀️ Try build successful - checks-azure |
Queued 017a682 with parent 9dc8dad, future comparison URL. |
Finished benchmarking try commit 017a682, comparison URL. |
📌 Commit 99a595e has been approved by |
Should this be backported onto beta? |
…nto_diagnostic-leak, r=Centril Fix a leak in `DiagnosticBuilder::into_diagnostic`. Fixes rust-lang#69600. r? @Centril
Rollup of 9 pull requests Successful merges: - #69565 (miri engine: turn some debug_assert into assert) - #69609 (Remove `usable_size` APIs) - #69620 (doc(librustc_error_codes): add long error explanation for E0719) - #69626 (Toolstate: don't duplicate nightly tool list.) - #69628 (Fix a leak in `DiagnosticBuilder::into_diagnostic`.) - #69633 (Update my mailmap entry) - #69634 (clean up E0378 explanation) - #69637 (Don't convert Results to Options just for matching.) - #69641 (Update books) Failed merges: r? @ghost
Rollup of 9 pull requests Successful merges: - #69213 (Improve documentation on iterators length) - #69609 (Remove `usable_size` APIs) - #69619 (more cleanups) - #69620 (doc(librustc_error_codes): add long error explanation for E0719) - #69626 (Toolstate: don't duplicate nightly tool list.) - #69628 (Fix a leak in `DiagnosticBuilder::into_diagnostic`.) - #69633 (Update my mailmap entry) - #69634 (clean up E0378 explanation) - #69637 (Don't convert Results to Options just for matching.) Failed merges: r? @ghost
beta-accepted |
[beta] another round of backports for 1.42 This backports the following pull requests: * Fix a leak in `DiagnosticBuilder::into_diagnostic`. #69628 * stash API: remove panic to fix ICE. #69623 * Do not ICE on invalid type node after parse recovery #69583 * Backport only: avoid ICE on bad placeholder type #69324 * add regression test for issue #68794 #69168 * Update compiler-builtins to 0.1.25 #69086 * Update RELEASES.md for 1.42.0 #68989
Fixes #69600.
r? @Centril