Skip to content

Commit 179571f

Browse files
committed
rustup: update to nightly-2024-12-25.
1 parent 5ed558e commit 179571f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use std::{env, fs, mem};
1818
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1919
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain.toml");
2020
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
21-
channel = "nightly-2024-12-20"
21+
channel = "nightly-2024-12-25"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = 9e136a30a965bf4e63f03095c57df7257bf96fd6"#;
23+
# commit_hash = 409998c4e8cae45344fd434b358b697cc93870d0"#;
2424

2525
fn rustc_output(arg: &str) -> Result<String, Box<dyn Error>> {
2626
let rustc = env::var("RUSTC").unwrap_or_else(|_| "rustc".into());

crates/rustc_codegen_spirv/src/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ fn add_upstream_rust_crates(
434434
.expect("failed to find crate type in dependency format list");
435435
for &cnum in &codegen_results.crate_info.used_crates {
436436
let src = &codegen_results.crate_info.used_crate_source[&cnum];
437-
match data[cnum.as_usize() - 1] {
437+
match data[cnum] {
438438
Linkage::NotLinked | Linkage::IncludedFromDylib => {}
439439
Linkage::Static => rlibs.push(src.rlib.as_ref().unwrap().0.clone()),
440440
//Linkage::Dynamic => rlibs.push(src.dylib.as_ref().unwrap().0.clone()),
@@ -465,7 +465,7 @@ fn add_upstream_native_libraries(
465465
NativeLibKind::Static {
466466
bundle: Some(false),
467467
..
468-
} if data[cnum.as_usize() - 1] != Linkage::Static => {}
468+
} if data[cnum] != Linkage::Static => {}
469469

470470
NativeLibKind::Static {
471471
bundle: None | Some(true),

rust-toolchain.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[toolchain]
2-
channel = "nightly-2024-12-20"
2+
channel = "nightly-2024-12-25"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = 9e136a30a965bf4e63f03095c57df7257bf96fd6
4+
# commit_hash = 409998c4e8cae45344fd434b358b697cc93870d0
55

66
# Whenever changing the nightly channel, update the commit hash above, and make
77
# sure to change `REQUIRED_TOOLCHAIN` in `crates/rustc_codegen_spirv/build.rs` also.

0 commit comments

Comments
 (0)