Skip to content

Commit

Permalink
Auto merge of #126278 - lqd:beta, r=<try>
Browse files Browse the repository at this point in the history
[beta] Check self-contained linker status

It seems the self-contained linker is enabled on beta. Let's fix that.

r? ghost
  • Loading branch information
bors committed Jun 11, 2024
2 parents 75ac3b6 + f422f46 commit ddfa768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions library/alloc/src/collections/binary_heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,7 @@ impl<T: Ord> BinaryHeap<T> {
/// heap.push(4);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(
feature = "const_binary_heap_constructor",
since = "1.80.0"
)]
#[rustc_const_stable(feature = "const_binary_heap_constructor", since = "1.80.0")]
#[must_use]
pub const fn new() -> BinaryHeap<T> {
BinaryHeap { data: vec![] }
Expand Down
3 changes: 3 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,10 @@ pub fn rustc_cargo_env(

// Enable rustc's env var for `rust-lld` when requested.
if builder.config.lld_enabled {
eprintln!("status: CFG_USE_SELF_CONTAINED_LINKER is enabled");
cargo.env("CFG_USE_SELF_CONTAINED_LINKER", "1");
} else {
eprintln!("status: CFG_USE_SELF_CONTAINED_LINKER is disabled");
}

if builder.config.rust_verify_llvm_ir {
Expand Down

0 comments on commit ddfa768

Please sign in to comment.