Skip to content

Commit f891a5a

Browse files
committed
rustup: update to nightly-2025-01-24.
1 parent 1a564c7 commit f891a5a

File tree

8 files changed

+27
-24
lines changed

8 files changed

+27
-24
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-2025-01-13"
21+
channel = "nightly-2025-01-24"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = 48a426eca9df23b24b3559e545cf88dee61d4de9"#;
23+
# commit_hash = 99768c80a1c094a5cfc3b25a04e7a99de7210eae"#;
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/codegen_cx/constant.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ impl<'tcx> ConstCodegenMethods<'tcx> for CodegenCx<'tcx> {
116116
fn const_undef(&self, ty: Self::Type) -> Self::Value {
117117
self.undef(ty)
118118
}
119+
fn is_undef(&self, v: Self::Value) -> bool {
120+
matches!(self.builder.lookup_const(v), Some(SpirvConst::Undef))
121+
}
119122
fn const_poison(&self, ty: Self::Type) -> Self::Value {
120123
// No distinction between undef and poison.
121124
self.const_undef(ty)

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-2025-01-13"
2+
channel = "nightly-2025-01-24"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = 48a426eca9df23b24b3559e545cf88dee61d4de9
4+
# commit_hash = 99768c80a1c094a5cfc3b25a04e7a99de7210eae
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/compiletests/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:4460:9
2+
--> $CORE_SRC/intrinsics/mod.rs:4472:9
33
|
4-
4460 | copy(src, dst, count)
4+
4472 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: used from within `core::intrinsics::copy::<f32>`
8-
--> $CORE_SRC/intrinsics/mod.rs:4437:21
8+
--> $CORE_SRC/intrinsics/mod.rs:4449:21
99
|
10-
4437 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+
4449 | 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:4448:9
31+
--> $CORE_SRC/intrinsics/mod.rs:4460:9
3232
|
33-
4448 | / ub_checks::assert_unsafe_precondition!(
34-
4449 | | check_language_ub,
35-
4450 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
33+
4460 | / ub_checks::assert_unsafe_precondition!(
34+
4461 | | check_language_ub,
35+
4462 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
3636
... |
37-
4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38-
4459 | | );
37+
4470 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38+
4471 | | );
3939
| |_________^
4040
|
4141
note: used from within `core::intrinsics::copy::<f32>`
42-
--> $CORE_SRC/intrinsics/mod.rs:4448:9
42+
--> $CORE_SRC/intrinsics/mod.rs:4460:9
4343
|
44-
4448 | / ub_checks::assert_unsafe_precondition!(
45-
4449 | | check_language_ub,
46-
4450 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
44+
4460 | / ub_checks::assert_unsafe_precondition!(
45+
4461 | | check_language_ub,
46+
4462 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
4747
... |
48-
4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49-
4459 | | );
48+
4470 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49+
4471 | | );
5050
| |_________^
5151
note: called by `ptr_copy::copy_via_raw_ptr`
5252
--> $DIR/ptr_copy.rs:28:18

tests/compiletests/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 1385 8
5+
OpLine %8 1380 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/compiletests/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 1385 8
5+
OpLine %8 1380 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/compiletests/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 1587 8
7+
OpLine %11 1582 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

tests/compiletests/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 1587 8
7+
OpLine %11 1582 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

0 commit comments

Comments
 (0)