Skip to content

Commit

Permalink
rustup: update to nightly-2024-01-08.
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed Jan 9, 2024
1 parent bc4140c commit 23ec94d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed 🛠
- [PR#1112](https://github.com/EmbarkStudios/rust-gpu/pull/1112) updated wgpu and winit in example runners
- [PR#1109](https://github.com/EmbarkStudios/rust-gpu/pull/1109) updated toolchain to `nightly-2023-12-31`
- [PR#1109](https://github.com/EmbarkStudios/rust-gpu/pull/1109) updated toolchain to `nightly-2024-01-08`
- [PR#1100](https://github.com/EmbarkStudios/rust-gpu/pull/1100) updated toolchain to `nightly-2023-09-30`
- [PR#1091](https://github.com/EmbarkStudios/rust-gpu/pull/1091) updated toolchain to `nightly-2023-08-29`
- [PR#1085](https://github.com/EmbarkStudios/rust-gpu/pull/1085) updated toolchain to `nightly-2023-07-08`
Expand Down
4 changes: 2 additions & 2 deletions crates/rustc_codegen_spirv/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ use std::process::{Command, ExitCode};
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain.toml");
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
channel = "nightly-2023-12-31"
channel = "nightly-2024-01-08"
components = ["rust-src", "rustc-dev", "llvm-tools"]
# commit_hash = 2a3e63551fe21458637480a97b65a2d15dec8062"#;
# commit_hash = 75c68cfd2b9870f2953b62d250bd7d0564a7b56d"#;

fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| String::from("rustc"));
Expand Down
4 changes: 2 additions & 2 deletions crates/rustc_codegen_spirv/src/custom_decorations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ impl<'a> CustomDecoration<'a> for SrcLocDecoration<'a> {
}
fn decode(s: &'a str) -> Self {
#[derive(Copy, Clone, Debug)]
struct InvalidSrcLoc<'a>(&'a str);
let err = InvalidSrcLoc(s);
struct InvalidSrcLoc;
let err = InvalidSrcLoc;

let (s, col_end) = s.rsplit_once(':').ok_or(err).unwrap();
let (s, line_end) = s.rsplit_once('-').ok_or(err).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/rustc_codegen_spirv/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ fn do_spirv_opt(
// <https://github.com/rust-lang/rust/commit/2cd14bc9394ca6675e08d02c02c5f9abfa813616>
Level::Error | Level::Fatal | Level::InternalError => DiagnosticBuilder::<()>::new(
sess.dcx(),
rustc_errors::Level::Error { lint: false },
rustc_errors::Level::Error,
msg.message,
),
Level::Warning => sess.dcx().struct_warn(msg.message),
Expand Down
4 changes: 2 additions & 2 deletions crates/rustc_codegen_spirv/src/linker/specializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@ enum CopyOperand {
}

#[derive(Debug)]
struct NotSupportedAsCopyOperand(Operand);
struct NotSupportedAsCopyOperand;

impl TryFrom<&Operand> for CopyOperand {
type Error = NotSupportedAsCopyOperand;
fn try_from(operand: &Operand) -> Result<Self, Self::Error> {
match *operand {
Operand::IdRef(id) => Ok(Self::IdRef(id)),
Operand::StorageClass(s) => Ok(Self::StorageClass(s)),
_ => Err(NotSupportedAsCopyOperand(operand.clone())),
_ => Err(NotSupportedAsCopyOperand),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rustc_codegen_spirv/src/linker/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn link_with_linker_opts(
)
};
let emitter =
rustc_errors::emitter::EmitterWriter::new(Box::new(buf), fallback_bundle)
rustc_errors::emitter::HumanEmitter::new(Box::new(buf), fallback_bundle)
.sm(Some(sess.parse_sess.clone_source_map()));

rustc_errors::DiagCtxt::with_emitter(Box::new(emitter))
Expand Down
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[toolchain]
channel = "nightly-2023-12-31"
channel = "nightly-2024-01-08"
components = ["rust-src", "rustc-dev", "llvm-tools"]
# commit_hash = 2a3e63551fe21458637480a97b65a2d15dec8062
# commit_hash = 75c68cfd2b9870f2953b62d250bd7d0564a7b56d

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

0 comments on commit 23ec94d

Please sign in to comment.