Skip to content

Commit 2dc6146

Browse files
eddybLegNeato
authored andcommitted
rustup: update to nightly-2024-02-01.
1 parent 28dea53 commit 2dc6146

File tree

17 files changed

+31
-39
lines changed

17 files changed

+31
-39
lines changed

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-2024-01-08"
13+
channel = "nightly-2024-02-01"
1414
components = ["rust-src", "rustc-dev", "llvm-tools"]
15-
# commit_hash = 75c68cfd2b9870f2953b62d250bd7d0564a7b56d"#;
15+
# commit_hash = 11f32b73e0dc9287e305b5b9980d24aecdc8c17f"#;
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/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ fn trans_intrinsic_type<'tcx>(
975975
.tcx
976976
.dcx()
977977
.struct_span_err(span, "#[spirv(matrix)] type fields must all be vectors")
978-
.note(format!("field type is {}", ty.debug(elem_type, cx)))
978+
.with_note(format!("field type is {}", ty.debug(elem_type, cx)))
979979
.emit());
980980
}
981981
}

crates/rustc_codegen_spirv/src/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl CheckSpirvAttrVisitor<'_> {
386386
span,
387387
format!("only one {category} attribute is allowed on a {target}"),
388388
)
389-
.span_note(prev_span, format!("previous {category} attribute"))
389+
.with_span_note(prev_span, format!("previous {category} attribute"))
390390
.emit();
391391
}
392392
},

crates/rustc_codegen_spirv/src/builder/spirv_asm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
306306
let storage_class = inst.operands[0].unwrap_storage_class();
307307
if storage_class != StorageClass::Generic {
308308
self.struct_err("TypePointer in asm! requires `Generic` storage class")
309-
.note(format!(
309+
.with_note(format!(
310310
"`{storage_class:?}` storage class was specified"
311311
))
312-
.help(format!(
312+
.with_help(format!(
313313
"the storage class will be inferred automatically (e.g. to `{storage_class:?}`)"
314314
))
315315
.emit();
@@ -362,7 +362,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
362362
self.struct_err(format!(
363363
"using `Op{op:?}` to return from within `asm!` is disallowed"
364364
))
365-
.note(
365+
.with_note(
366366
"resuming execution, without falling through the end \
367367
of the `asm!` block, is always undefined behavior",
368368
)

crates/rustc_codegen_spirv/src/builder_spirv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl SpirvValue {
165165
cx.tcx
166166
.dcx()
167167
.struct_span_err(span, "Can't use type as a value")
168-
.note(format!("Type: *{}", cx.debug_type(id)))
168+
.with_note(format!("Type: *{}", cx.debug_type(id)))
169169
.emit();
170170

171171
id

crates/rustc_codegen_spirv/src/codegen_cx/entry.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,20 +311,17 @@ impl<'tcx> CodegenCx<'tcx> {
311311
self.tcx
312312
.dcx()
313313
.struct_span_err(hir_param.span, "storage class mismatch")
314-
.span_label(
314+
.with_span_label(
315315
storage_class_attr.span,
316316
format!("`{storage_class:?}` specified in attribute"),
317317
)
318-
.span_label(
318+
.with_span_label(
319319
hir_param.ty_span,
320320
format!("`{deduced:?}` deduced from type"),
321321
)
322-
.span_help(
323-
storage_class_attr.span,
324-
format!(
325-
"remove storage class attribute to use `{deduced:?}` as storage class"
326-
),
327-
)
322+
.with_help(format!(
323+
"remove storage class attribute to use `{deduced:?}` as storage class"
324+
))
328325
.emit();
329326
}
330327
None => (),

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
//! [`spirv-tools`]: https://rust-gpu.github.io/rust-gpu/api/spirv_tools
1717
//! [`spirv-tools-sys`]: https://rust-gpu.github.io/rust-gpu/api/spirv_tools_sys
1818
#![feature(rustc_private)]
19-
#![feature(array_methods)]
2019
#![feature(assert_matches)]
2120
#![feature(result_flattening)]
2221
#![feature(lint_reasons)]

crates/rustc_codegen_spirv/src/link.rs

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

crates/rustc_codegen_spirv/src/linker/import_export_link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ fn check_tys_equal(
188188
Err(sess
189189
.dcx()
190190
.struct_err(format!("Types mismatch for {name:?}"))
191-
.note(format!(
191+
.with_note(format!(
192192
"import type: {}",
193193
format_ty_(&ty_defs, import_type)
194194
))
195-
.note(format!(
195+
.with_note(format!(
196196
"export type: {}",
197197
format_ty_(&ty_defs, export_type)
198198
))

crates/rustc_codegen_spirv/src/linker/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ pub fn link(
428428
return Err(sess
429429
.dcx()
430430
.struct_err(format!("{e}"))
431-
.note("while lowering SPIR-V module to SPIR-T (spirt::spv::lower)")
432-
.note(format!("input SPIR-V module {was_saved_msg}"))
431+
.with_note("while lowering SPIR-V module to SPIR-T (spirt::spv::lower)")
432+
.with_note(format!("input SPIR-V module {was_saved_msg}"))
433433
.emit());
434434
}
435435
}
@@ -543,7 +543,7 @@ pub fn link(
543543
if opts.dump_spirt_passes.is_none() {
544544
note.help("re-run with `RUSTGPU_CODEGEN_ARGS=\"--dump-spirt-passes=$PWD\"` for more details");
545545
}
546-
note.note("pretty-printed SPIR-T is preferred when reporting Rust-GPU issues")
546+
note.with_note("pretty-printed SPIR-T is preferred when reporting Rust-GPU issues")
547547
.emit();
548548
}
549549

0 commit comments

Comments
 (0)