Skip to content

Commit e4a9099

Browse files
committed
rustup: update to nightly-2025-01-03 (~1.85).
1 parent 179571f commit e4a9099

File tree

10 files changed

+38
-27
lines changed

10 files changed

+38
-27
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-25"
21+
channel = "nightly-2025-01-03"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = 409998c4e8cae45344fd434b358b697cc93870d0"#;
23+
# commit_hash = 4363f9b6f6d3656d94adbcabba6348a485ef9a56"#;
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/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ use maybe_pqp_cg_ssa::traits::{
150150
use maybe_pqp_cg_ssa::{CodegenResults, CompiledModule, ModuleCodegen, ModuleKind};
151151
use rspirv::binary::Assemble;
152152
use rustc_ast::expand::allocator::AllocatorKind;
153+
use rustc_ast::expand::autodiff_attrs::AutoDiffItem;
153154
use rustc_data_structures::fx::FxIndexMap;
154155
use rustc_errors::{DiagCtxtHandle, FatalError};
155156
use rustc_metadata::EncodedMetadata;
@@ -429,6 +430,16 @@ impl WriteBackendMethods for SpirvCodegenBackend {
429430
fn serialize_module(module: ModuleCodegen<Self::Module>) -> (String, Self::ModuleBuffer) {
430431
(module.name, SpirvModuleBuffer(module.module_llvm))
431432
}
433+
434+
fn autodiff(
435+
_cgcx: &CodegenContext<Self>,
436+
_tcx: TyCtxt<'_>,
437+
_module: &ModuleCodegen<Self::Module>,
438+
_diff_fncs: Vec<AutoDiffItem>,
439+
_config: &ModuleConfig,
440+
) -> Result<(), FatalError> {
441+
todo!()
442+
}
432443
}
433444

434445
impl ExtraBackendMethods for SpirvCodegenBackend {

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-25"
2+
channel = "nightly-2025-01-03"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = 409998c4e8cae45344fd434b358b697cc93870d0
4+
# commit_hash = 4363f9b6f6d3656d94adbcabba6348a485ef9a56
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.

tests/ui/dis/issue-1062.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OpLine %5 11 12
44
%6 = OpLoad %7 %8
55
OpLine %5 11 35
66
%9 = OpLoad %7 %10
7-
OpLine %11 1224 4
7+
OpLine %11 1094 4
88
%12 = OpBitwiseAnd %7 %9 %13
99
%14 = OpISub %7 %15 %12
1010
%16 = OpShiftLeftLogical %7 %6 %12

tests/ui/dis/ptr_copy.normal.stderr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: cannot memcpy dynamically sized data
2-
--> $CORE_SRC/intrinsics/mod.rs:4445:9
2+
--> $CORE_SRC/intrinsics/mod.rs:4488:9
33
|
4-
4445 | copy(src, dst, count)
4+
4488 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: used from within `core::intrinsics::copy::<f32>`
8-
--> $CORE_SRC/intrinsics/mod.rs:4422:21
8+
--> $CORE_SRC/intrinsics/mod.rs:4465:21
99
|
10-
4422 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+
4465 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
1111
| ^^^^
1212
note: called by `ptr_copy::copy_via_raw_ptr`
1313
--> $DIR/ptr_copy.rs:28:18
@@ -28,25 +28,25 @@ note: called by `main`
2828
error: cannot cast between pointer types
2929
from `*f32`
3030
to `*struct () { }`
31-
--> $CORE_SRC/intrinsics/mod.rs:4433:9
31+
--> $CORE_SRC/intrinsics/mod.rs:4476:9
3232
|
33-
4433 | / ub_checks::assert_unsafe_precondition!(
34-
4434 | | check_language_ub,
35-
4435 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
33+
4476 | / ub_checks::assert_unsafe_precondition!(
34+
4477 | | check_language_ub,
35+
4478 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
3636
... |
37-
4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38-
4444 | | );
37+
4486 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38+
4487 | | );
3939
| |_________^
4040
|
4141
note: used from within `core::intrinsics::copy::<f32>`
42-
--> $CORE_SRC/intrinsics/mod.rs:4433:9
42+
--> $CORE_SRC/intrinsics/mod.rs:4476:9
4343
|
44-
4433 | / ub_checks::assert_unsafe_precondition!(
45-
4434 | | check_language_ub,
46-
4435 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
44+
4476 | / ub_checks::assert_unsafe_precondition!(
45+
4477 | | check_language_ub,
46+
4478 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
4747
... |
48-
4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49-
4444 | | );
48+
4486 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49+
4487 | | );
5050
| |_________^
5151
note: called by `ptr_copy::copy_via_raw_ptr`
5252
--> $DIR/ptr_copy.rs:28:18

tests/ui/dis/ptr_read.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1375 8
5+
OpLine %8 1385 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/ui/dis/ptr_read_method.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1375 8
5+
OpLine %8 1385 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/ui/dis/ptr_write.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%7 = OpLabel
55
OpLine %8 7 35
66
%9 = OpLoad %10 %4
7-
OpLine %11 1579 8
7+
OpLine %11 1587 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

tests/ui/dis/ptr_write_method.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%7 = OpLabel
55
OpLine %8 7 37
66
%9 = OpLoad %10 %4
7-
OpLine %11 1579 8
7+
OpLine %11 1587 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

tests/ui/lang/core/unwrap_or.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
OpLine %5 13 11
44
%6 = OpCompositeInsert %7 %8 %9 0
55
%10 = OpCompositeExtract %11 %6 1
6-
OpLine %12 993 14
6+
OpLine %12 999 14
77
%13 = OpBitcast %14 %8
8-
OpLine %12 993 8
8+
OpLine %12 999 8
99
%15 = OpIEqual %16 %13 %17
1010
OpNoLine
1111
OpSelectionMerge %18 None

0 commit comments

Comments
 (0)