Uh oh!
There was an error while loading. Please reload this page.
datastructures: replace once_cell crate with an impl from std - #76075
Conversation
There was a problem hiding this comment.
I would've expected import changes as well - is this coming from a macro or something like that? If so that should get a allow_internal_unstable annotation instead, probably
There was a problem hiding this comment.
I am not exactly sure what you are referring to, but in src/librustc_interface/passes.rs and src/librustc_interface/queries.rs the code imports OnceCell re-exported from librustc_datastructures.
Side note: there is also an explicit import (and thus a dependency on the crate) of once_cell::sync::OnceCell in src/librustc_interface/util.rs though and I don't know if that should be updated to use the impl from std.
Uh oh!
There was an error while loading. Please reload this page.
b8e4b77 to
2ced222Comparejyn514
commented
Aug 30, 2020
@bors try @rust-timer queue |
rust-timer
commented
Aug 30, 2020
Awaiting bors try build completion |
bors
commented
Aug 30, 2020
⌛ Trying commit 2ced2226acb1f6fd027e87e5918e81db8320505b with merge e1c8714b3f420be20f3c670b7ad84eccbe252b26... |
bors
commented
Aug 30, 2020
☀️ Try build successful - checks-actions, checks-azure |
rust-timer
commented
Aug 30, 2020
Queued e1c8714b3f420be20f3c670b7ad84eccbe252b26 with parent 5c27700, future comparison URL. |
rust-timer
commented
Aug 30, 2020
Finished benchmarking try commit (e1c8714b3f420be20f3c670b7ad84eccbe252b26): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
jyn514
commented
Aug 30, 2020
Nice, basically no change in instructions but significantly less max-rss :) |
andjo403
commented
Aug 30, 2020
@jyn514 think that it is to little data to say anything about the max-rss due to how big the variance is if you look at perf graphs you will see that eg. keccak-debug have varied between -10% to +20%. |
matklad
commented
Aug 30, 2020
Yeah, I would be very surprised if the perf turned out to be non-neutral on this one ! @bors r+ rollup Let’s change direct usages of once_cell and lazy_static crates to std::lazy in a separate PR. I am not sure about the policy of using librustc_datastructures re-export vs direct use, but it should always be safe to not change this particular aspect. |
bors
commented
Aug 30, 2020
📌 Commit 2ced2226acb1f6fd027e87e5918e81db8320505b has been approved by |
bors
commented
Aug 30, 2020
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
2ced222 to
68500ffComparemarmeladema
commented
Aug 30, 2020
@bors r=matklad |
bors
commented
Aug 30, 2020
@marmeladema: 🔑 Insufficient privileges: Not in reviewers |
marmeladema
commented
Aug 30, 2020
@matklad I need another approval from your part I believe 👍 |
@bors delegate+ |
bors
commented
Aug 30, 2020
✌️ @marmeladema can now approve this pull request |
marmeladema
commented
Aug 30, 2020
@bors r=matklad |
bors
commented
Aug 30, 2020
📌 Commit 68500ff has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#75938 (Added some `min_const_generics` revisions into `const_generics` tests) - rust-lang#76050 (Remove unused function) - rust-lang#76075 (datastructures: replace `once_cell` crate with an impl from std) - rust-lang#76115 (Restore public visibility on some parsing functions for rustfmt) - rust-lang#76127 (rustbuild: Remove one LLD workaround) Failed merges: r? @ghost
Fixes#75700
r? @matklad
We might need a perf run for this change.