Skip to content

Commit 5ed558e

Browse files
committed
rustup: update to nightly-2024-12-20.
1 parent e0f3be2 commit 5ed558e

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
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-17"
21+
channel = "nightly-2024-12-20"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = 6d9f6ae36ae1299d6126ba40c15191f7aa3b79d8"#;
23+
# commit_hash = 9e136a30a965bf4e63f03095c57df7257bf96fd6"#;
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/abi.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ pub(crate) fn provide(providers: &mut Providers) {
125125
},
126126
},
127127
variants: match *variants {
128+
Variants::Empty => Variants::Empty,
128129
Variants::Single { index } => Variants::Single { index },
129130
Variants::Multiple {
130131
tag,
@@ -652,6 +653,7 @@ fn dig_scalar_pointee<'tcx>(
652653
}
653654

654655
let all_fields = (match &layout.variants {
656+
Variants::Empty => 0..0,
655657
Variants::Multiple { variants, .. } => 0..variants.len(),
656658
Variants::Single { index } => {
657659
let i = index.as_usize();
@@ -867,7 +869,7 @@ impl<'tcx> From<TyAndLayout<'tcx>> for TyLayoutNameKey<'tcx> {
867869
ty: layout.ty,
868870
variant: match layout.variants {
869871
Variants::Single { index } => Some(index),
870-
Variants::Multiple { .. } => None,
872+
_ => None,
871873
},
872874
}
873875
}

crates/rustc_codegen_spirv/src/codegen_cx/declare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::custom_decorations::{CustomDecoration, SrcLocDecoration};
99
use crate::spirv_type::SpirvType;
1010
use itertools::Itertools;
1111
use rspirv::spirv::{FunctionControl, LinkageType, StorageClass, Word};
12-
use rustc_attr::InlineAttr;
12+
use rustc_attr_parsing::InlineAttr;
1313
use rustc_codegen_ssa::traits::{PreDefineCodegenMethods, StaticCodegenMethods};
1414
use rustc_hir::def::DefKind;
1515
use rustc_middle::bug;

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extern crate rustc_arena;
8585
#[cfg(rustc_codegen_spirv_disable_pqp_cg_ssa)]
8686
extern crate rustc_ast;
8787
#[cfg(rustc_codegen_spirv_disable_pqp_cg_ssa)]
88-
extern crate rustc_attr;
88+
extern crate rustc_attr_parsing;
8989
#[cfg(rustc_codegen_spirv_disable_pqp_cg_ssa)]
9090
extern crate rustc_codegen_ssa;
9191
#[cfg(rustc_codegen_spirv_disable_pqp_cg_ssa)]

crates/rustc_codegen_spirv/src/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ fn add_upstream_native_libraries(
485485
// (see `compiler/rustc_codegen_ssa/src/back/link.rs`)
486486
fn relevant_lib(sess: &Session, lib: &NativeLib) -> bool {
487487
match lib.cfg {
488-
Some(ref cfg) => rustc_attr::cfg_matches(cfg, sess, CRATE_NODE_ID, None),
488+
Some(ref cfg) => rustc_attr_parsing::cfg_matches(cfg, sess, CRATE_NODE_ID, None),
489489
None => true,
490490
}
491491
}

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-17"
2+
channel = "nightly-2024-12-20"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = 6d9f6ae36ae1299d6126ba40c15191f7aa3b79d8
4+
# commit_hash = 9e136a30a965bf4e63f03095c57df7257bf96fd6
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)