Uh oh!
There was an error while loading. Please reload this page.
Fix a leak in DiagnosticBuilder::into_diagnostic. - #69628
Conversation
nnethercote
commented
Mar 2, 2020
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. |
Uh oh!
There was an error while loading. Please reload this page.
Centril
commented
Mar 2, 2020
Pretty unfortunate that we cannot just do r=me when #69628 (comment) has resolved itself. |
83b38a5 to
99a595eCompare@nnethercote btw, |
nnethercote
commented
Mar 2, 2020
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 |
rust-timer
commented
Mar 2, 2020
Awaiting bors try build completion |
bors
commented
Mar 2, 2020
bors
commented
Mar 2, 2020
☀️ Try build successful - checks-azure |
rust-timer
commented
Mar 2, 2020
Queued 017a682 with parent 9dc8dad, future comparison URL. |
rust-timer
commented
Mar 2, 2020
Finished benchmarking try commit 017a682, comparison URL. |
nnethercote
commented
Mar 2, 2020
bors
commented
Mar 2, 2020
📌 Commit 99a595e has been approved by |
nnethercote
commented
Mar 2, 2020
Should this be backported onto beta? |
…nto_diagnostic-leak, r=Centril Fix a leak in `DiagnosticBuilder::into_diagnostic`. Fixesrust-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
pnkfelix
commented
Mar 5, 2020
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