Skip to content

Commit f987e10

Browse files
committed
rustup: update to nightly-2023-12-16.
1 parent cc621b0 commit f987e10

18 files changed

+47
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
## [Unreleased]
3131

3232
### Changed 🛠
33-
- [PR#1102](https://github.com/EmbarkStudios/rust-gpu/pull/1102) updated toolchain to `nightly-2023-11-26`
33+
- [PR#1109](https://github.com/EmbarkStudios/rust-gpu/pull/1109) updated toolchain to `nightly-2023-12-16`
3434
- [PR#1115](https://github.com/EmbarkStudios/rust-gpu/pull/1115) relaxed `glam` version requirements (from `>=0.22, <=0.24` to `>=0.22, <=0.25`)
3535
- [PR#1127](https://github.com/EmbarkStudios/rust-gpu/pull/1127) updated `spirv-tools` to `0.10.0`, which follows `vulkan-sdk-1.3.275`
3636
- [PR#1101](https://github.com/EmbarkStudios/rust-gpu/pull/1101) added `ignore` and `no_run` to documentation to make `cargo test` pass

crates/rustc_codegen_spirv/build.rs

Lines changed: 2 additions & 2 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.toml");
1212
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
13-
channel = "nightly-2023-11-26"
13+
channel = "nightly-2023-12-16"
1414
components = ["rust-src", "rustc-dev", "llvm-tools"]
15-
# commit_hash = f5dc2653fdd8b5d177b2ccbd84057954340a89fc"#;
15+
# commit_hash = a96d57bdb6d2bb6d233d7d5aaefc2995ab99be01"#;
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"));

crates/rustc_codegen_spirv/src/attr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ impl AggregatedSpirvAttributes {
148148
pub fn parse<'tcx>(cx: &CodegenCx<'tcx>, attrs: &'tcx [Attribute]) -> Self {
149149
let mut aggregated_attrs = Self::default();
150150

151-
// NOTE(eddyb) `delay_span_bug` ensures that if attribute checking fails
151+
// NOTE(eddyb) `span_delayed_bug` ensures that if attribute checking fails
152152
// to see an attribute error, it will cause an ICE instead.
153153
for parse_attr_result in crate::symbols::parse_attrs_for_checking(&cx.sym, attrs) {
154154
let (span, parsed_attr) = match parse_attr_result {
155155
Ok(span_and_parsed_attr) => span_and_parsed_attr,
156156
Err((span, msg)) => {
157-
cx.tcx.sess.delay_span_bug(span, msg);
157+
cx.tcx.sess.span_delayed_bug(span, msg);
158158
continue;
159159
}
160160
};
@@ -166,7 +166,7 @@ impl AggregatedSpirvAttributes {
166166
}) => {
167167
cx.tcx
168168
.sess
169-
.delay_span_bug(span, format!("multiple {category} attributes"));
169+
.span_delayed_bug(span, format!("multiple {category} attributes"));
170170
}
171171
}
172172
}

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ impl<'tcx> ConstMethods<'tcx> for CodegenCx<'tcx> {
290290
}
291291
}
292292
Scalar::Ptr(ptr, _) => {
293-
let (alloc_id, offset) = ptr.into_parts();
293+
let (prov, offset) = ptr.into_parts();
294+
let alloc_id = prov.alloc_id();
294295
let (base_addr, _base_addr_space) = match self.tcx.global_alloc(alloc_id) {
295296
GlobalAlloc::Memory(alloc) => {
296297
let pointee = match self.lookup_type(ty) {

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ pub fn __rustc_codegen_backend() -> Box<dyn CodegenBackend> {
500500
rustc_driver::install_ice_hook(
501501
"https://github.com/rust-gpu/rust-gpu/issues/new",
502502
|handler| {
503-
handler.note_without_error(concat!(
503+
handler.note(concat!(
504504
"`rust-gpu` version `",
505505
env!("CARGO_PKG_VERSION"),
506506
"`"

crates/rustc_codegen_spirv/src/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ fn do_spirv_opt(
350350
}
351351
Level::Error => sess.struct_err(msg.message).forget_guarantee(),
352352
Level::Warning => sess.struct_warn(msg.message),
353-
Level::Info | Level::Debug => sess.struct_note_without_error(msg.message),
353+
Level::Info | Level::Debug => sess.struct_note(msg.message),
354354
};
355355

356356
err.note(format!("module `{}`", filename.display()));

crates/rustc_codegen_spirv/src/linker/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ pub fn link(
534534
}
535535

536536
if any_spirt_bugs {
537-
let mut note = sess.struct_note_without_error("SPIR-T bugs were reported");
537+
let mut note = sess.struct_note("SPIR-T bugs were reported");
538538
note.help(format!(
539539
"pretty-printed SPIR-T was saved to {}.html",
540540
dump_spirt_file_path.as_ref().unwrap().display()

crates/rustc_codegen_spirv/src/linker/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ fn link_with_linker_opts(
125125
let mut early_error_handler = rustc_session::EarlyErrorHandler::new(
126126
rustc_session::config::ErrorOutputType::default(),
127127
);
128+
early_error_handler.initialize_checked_jobserver();
128129
let matches = rustc_driver::handle_options(
129130
&early_error_handler,
130131
&["".to_string(), "x.rs".to_string()],
@@ -135,7 +136,7 @@ fn link_with_linker_opts(
135136

136137
rustc_span::create_session_globals_then(sopts.edition, || {
137138
let mut sess = rustc_session::build_session(
138-
&early_error_handler,
139+
early_error_handler,
139140
sopts,
140141
CompilerIO {
141142
input: Input::Str {

crates/rustc_codegen_spirv/src/symbols.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ fn parse_local_size_attr(arg: &NestedMetaItem) -> Result<[u32; 3], ParseAttrErro
569569
}
570570
Ok(local_size)
571571
}
572-
Some(tuple) if tuple.is_empty() => Err((
572+
Some([]) => Err((
573573
arg.span,
574574
"#[spirv(compute(threads(x, y, z)))] must have the x dimension specified, trailing ones may be elided".to_string(),
575575
)),

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-2023-11-26"
2+
channel = "nightly-2023-12-16"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = f5dc2653fdd8b5d177b2ccbd84057954340a89fc
4+
# commit_hash = a96d57bdb6d2bb6d233d7d5aaefc2995ab99be01
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)