Uh oh!
There was an error while loading. Please reload this page.
Simplify library dependencies on compiler-builtins - #144683
Conversation
core via rustc-std-workspace-core in library/panic*compiler-builtinsrustbot
commented
Jul 30, 2025
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
tgross35
commented
Jul 30, 2025
Things pass locally, assuming similar luck in CI |
This comment has been minimized.
This comment has been minimized.
38dea0f to
d7654b9Comparebjorn3
commented
Jul 30, 2025
@bors r+ |
bors
commented
Jul 30, 2025
…e, r=bjorn3 Simplify library dependencies on `compiler-builtins` The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`. The second commit removes `compiler-builtins` from `std` (more details in the message).
Rollup of 6 pull requests Successful merges: - #135975 (Implement `push_mut`) - #143672 (Fix Box allocator drop elaboration) - #144232 (Implement support for `become` and explicit tail call codegen for the LLVM backend) - #144663 (coverage: Re-land "Enlarge empty spans during MIR instrumentation") - #144683 (Simplify library dependencies on `compiler-builtins`) - #144685 (Only extract lang items once in codegen_fn_attrs) r? `@ghost` `@rustbot` modify labels: rollup
Noratrieb
commented
Jul 31, 2025
@bors r- |
tgross35
commented
Jul 31, 2025
...okay what? Added in 61e550a, @Ayush1325 why doesn't that create slices and do |
tgross35
commented
Jul 31, 2025
@bors2 try jobs=dist-various-2 |
Simplify library dependencies on `compiler-builtins` try-job: dist-various-2
`compiler_builtins` shouldn't be called directly. Change the `PartialEq` implementation for `DevicePathNode` to use slice equality instead, which will call `memcmp`/`bcmp` via the intrinsic.
The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`.
`compiler-builtins` is already in the crate graph via `alloc`, and all features related to `compiler-builtins` goes through `alloc`. There isn't any reason that `std` needs this direct dependency, so remove it.
4f7f450 to
42bf044Comparetgross35
commented
Jul 31, 2025
Thanks Nora! @bors r=bjorn3,Noratrieb |
bors
commented
Jul 31, 2025
Rollup of 7 pull requests Successful merges: - #143849 (rustdoc: never link to unnamable items) - #144683 (Simplify library dependencies on `compiler-builtins`) - #144691 (Extend `is_case_difference` to handle digit-letter confusables) - #144700 (rustdoc-json: Move `#[macro_export]` from `Other` to it's own variant) - #144751 (Add correct dynamic_lib_extension for aix) - #144757 (Ping Muscraft when emitter change) - #144759 (triagebot: Label `compiler-builtins` T-libs) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #144683 - tgross35:builtins-via-std-workspace, r=bjorn3,Noratrieb Simplify library dependencies on `compiler-builtins` The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`. The second commit removes `compiler-builtins` from `std` (more details in the message).
…e, r=bjorn3,Noratrieb Simplify library dependencies on `compiler-builtins` The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`. The second commit removes `compiler-builtins` from `std` (more details in the message).
The three panic-related library crates need to have access to
core, andcompiler-builtinsneeds to be in the crate graph. Rather than specifying both dependencies, switch these crates to userustc-std-workspace-corewhich already does this.This means there is now a single place that the
compiler-builtinsdependency needs to get configured, for everything other thanallocandstd.The second commit removes
compiler-builtinsfromstd(more details in the message).r? @ghost