-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rollup of 7 pull requests #114116
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
Rollup of 7 pull requests #114116
Conversation
In `base.rs`, tweak how the CGU size interleaving works. Since rust-lang#113777, it's much more common to have multiple CGUs with identical sizes. With the existing code these same-sized items ended up in the opposite-to-desired order due to the stable sorting. The code now starts with a reverse sort (like is done in `partitioning.rs`) which gives the behaviour we want. This doesn't matter much for perf, but makes profiles in `samply` look more like what we expect. In `partitioning.rs`, we can use `sort_by_key` instead of `sort_by_cached_key` because `CGU::size_estimate()` is cheap. (There is an identical CGU sort earlier in that function that already uses `sort_by_key`.)
It's currently stored twice: once in `Parser`, once in the `TokenStream` within `Parser`. We only need the latter.
It doesn't really matter what the `desugar_doc_comments` argument is here, because in practice we never look ahead through doc comments. Changing it to `cursor.desugar_doc_comments` will allow some follow-up simplifications.
…}next`. Because it's now always `self.desugar_doc_comments`.
Useful information that took me some time to discern.
…nkfelix Tweak CGU sorting in a couple of places. In `base.rs`, tweak how the CGU size interleaving works. Since rust-lang#113777, it's much more common to have multiple CGUs with identical sizes. With the existing code these same-sized items ended up in the opposite-to-desired order due to the stable sorting. The code now starts with a reverse sort (like is done in `partitioning.rs`) which gives the behaviour we want. This doesn't matter much for perf, but makes profiles in `samply` look more like what we expect. In `partitioning.rs`, we can use `sort_by_key` instead of `sort_by_cached_key` because `CGU::size_estimate()` is cheap. (There is an identical CGU sort earlier in that function that already uses `sort_by_key`.) r? `@pnkfelix`
CI: fix CMake installation for 32/64 bit `dist` Linux Should hopefully fix LLVM 17 build (rust-lang#114048 (comment)).
…esleywiser inline format!() args from rustc_codegen_llvm to the end (4) r? `@WaffleLapkin`
…leanups, r=petrochenkov `desugar_doc_comments` cleanups r? `@petrochenkov`
…spastorino add stable NullaryOp r? `@spastorino`
replace atty crate with std's IsTerminal
…ck, r=pnkfelix Dont pass `-Zwrite-long-types-to-disk=no` for `ui-fulldeps --stage=1` Due to this hack: https://github.com/rust-lang/rust/blob/601a34de8c10458b72a7781eb0b44a7981e4a2b1/src/bootstrap/test.rs#L1473-L1484 We use the stage 0 compiler to build the stage 1 fulldeps tests. That means that we don't have `-Zwrite-long-types-to-disk=no` which was added in rust-lang#113893. Add a temporary hack to fix this (https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Some.20tests.20failing.20with.20--stage.201) until the next beta bump.
@bors r+ rollup=never p=7 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: d150dbb067 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (3e11b22): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 653.837s -> 652.287s (-0.24%) |
Successful merges:
dist
Linux #114053 (CI: fix CMake installation for 32/64 bitdist
Linux)desugar_doc_comments
cleanups #114081 (desugar_doc_comments
cleanups)-Zwrite-long-types-to-disk=no
forui-fulldeps --stage=1
#114102 (Dont pass-Zwrite-long-types-to-disk=no
forui-fulldeps --stage=1
)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup