Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 5acb4e6

Browse files
oisyneddyb
authored andcommitted
Update to nightly-2022-09-10
1 parent 27eb4d5 commit 5acb4e6

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

crates/rustc_codegen_spirv/build.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ use std::process::{Command, ExitCode};
1010
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1111
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain");
1212
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
13-
channel = "nightly-2022-09-06"
13+
channel = "nightly-2022-09-10"
1414
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
15-
# commit_hash = b44197abb0b3ffe4908892e1e08ab1cd721ff3b9"#;
15+
# commit_hash = 1d37ed661a6922e7a167609b8cd7eb31e972b19b"#;
1616

1717
fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
1818
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| String::from("rustc"));
@@ -45,7 +45,9 @@ fn check_toolchain_version() -> Result<(), Box<dyn Error>> {
4545
}
4646
}
4747

48-
if !cfg!(feature = "skip-toolchain-check") {
48+
if !cfg!(feature = "skip-toolchain-check")
49+
&& !std::env::var("RUSTGPU_SKIP_TOOLCHAIN_CHECK").is_ok()
50+
{
4951
// check if our current rustc's commit hash matches with what we expect it to be
5052
let current_hash = get_rustc_commit_hash()?;
5153
let required_hash = get_required_commit_hash()?;

crates/rustc_codegen_spirv/src/abi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ pub(crate) fn provide(providers: &mut Providers) {
128128
tag_encoding: match *tag_encoding {
129129
TagEncoding::Direct => TagEncoding::Direct,
130130
TagEncoding::Niche {
131-
dataful_variant,
131+
untagged_variant,
132132
ref niche_variants,
133133
niche_start,
134134
} => TagEncoding::Niche {
135-
dataful_variant,
135+
untagged_variant,
136136
niche_variants: niche_variants.clone(),
137137
niche_start,
138138
},

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,6 @@ impl<'tcx> ConstMethods<'tcx> for CodegenCx<'tcx> {
331331
}
332332
}
333333

334-
fn zst_to_backend(&self, _llty: Self::Type) -> Self::Value {
335-
unreachable!();
336-
}
337-
338334
// FIXME(eddyb) this shouldn't exist, and is only used by vtable creation,
339335
// see https://github.com/rust-lang/rust/pull/86475#discussion_r680792727.
340336
fn const_data_from_alloc(&self, _alloc: ConstAllocation<'tcx>) -> Self::Value {

rust-toolchain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to the user in the error, instead of "error: invalid channel name '[toolchain]'".
66

77
[toolchain]
8-
channel = "nightly-2022-09-06"
8+
channel = "nightly-2022-09-10"
99
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
10-
# commit_hash = b44197abb0b3ffe4908892e1e08ab1cd721ff3b9
10+
# commit_hash = 1d37ed661a6922e7a167609b8cd7eb31e972b19b
1111

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

0 commit comments

Comments
 (0)