Skip to content

Commit 6751509

Browse files
committed
rustup: update to nightly-2025-01-12.
1 parent 5d81041 commit 6751509

File tree

7 files changed

+27
-23
lines changed

7 files changed

+27
-23
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-09"
21+
channel = "nightly-2025-01-12"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = a580b5c379b4fca50dfe5afc0fc0ce00921e4e00"#;
23+
# commit_hash = eb54a50837ad4bcc9842924f27e7287ca66e294c"#;
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/abi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub(crate) fn provide(providers: &mut Providers) {
110110
size,
111111
max_repr_align,
112112
unadjusted_abi_align,
113+
randomization_seed,
113114
} = *layout;
114115
LayoutData {
115116
fields: match *fields {
@@ -156,6 +157,7 @@ pub(crate) fn provide(providers: &mut Providers) {
156157
size,
157158
max_repr_align,
158159
unadjusted_abi_align,
160+
randomization_seed,
159161
}
160162
}
161163

crates/rustc_codegen_spirv/src/codegen_cx/declare.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ fn attrs_to_spirv(attrs: &CodegenFnAttrs) -> FunctionControl {
2525
let mut control = FunctionControl::NONE;
2626
match attrs.inline {
2727
InlineAttr::None => (),
28-
InlineAttr::Hint | InlineAttr::Always => control.insert(FunctionControl::INLINE),
28+
InlineAttr::Hint | InlineAttr::Always | InlineAttr::Force { .. } => {
29+
control.insert(FunctionControl::INLINE)
30+
}
2931
InlineAttr::Never => control.insert(FunctionControl::DONT_INLINE),
3032
}
3133
if attrs.flags.contains(CodegenFnAttrFlags::FFI_PURE) {

crates/rustc_codegen_spirv/src/linker/param_weakening.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use indexmap::IndexMap;
88
use rspirv::dr::{Builder, Module, Operand};
99
use rspirv::spirv::{Op, Word};
1010
use rustc_data_structures::fx::FxHashMap;
11-
use rustc_index::bit_set::BitSet;
11+
use rustc_index::bit_set::DenseBitSet as BitSet;
1212
use std::mem;
1313

1414
pub fn remove_unused_params(module: Module) -> Module {

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-09"
2+
channel = "nightly-2025-01-12"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = a580b5c379b4fca50dfe5afc0fc0ce00921e4e00
4+
# commit_hash = eb54a50837ad4bcc9842924f27e7287ca66e294c
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/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 1094 4
7+
OpLine %11 1098 4
88
%12 = OpBitwiseAnd %7 %9 %13
99
%14 = OpISub %7 %15 %12
1010
%16 = OpShiftLeftLogical %7 %6 %12

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:4488:9
2+
--> $CORE_SRC/intrinsics/mod.rs:4460:9
33
|
4-
4488 | copy(src, dst, count)
4+
4460 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: used from within `core::intrinsics::copy::<f32>`
8-
--> $CORE_SRC/intrinsics/mod.rs:4465:21
8+
--> $CORE_SRC/intrinsics/mod.rs:4437:21
99
|
10-
4465 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+
4437 | 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:4476:9
31+
--> $CORE_SRC/intrinsics/mod.rs:4448:9
3232
|
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",
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",
3636
... |
37-
4486 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38-
4487 | | );
37+
4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38+
4459 | | );
3939
| |_________^
4040
|
4141
note: used from within `core::intrinsics::copy::<f32>`
42-
--> $CORE_SRC/intrinsics/mod.rs:4476:9
42+
--> $CORE_SRC/intrinsics/mod.rs:4448:9
4343
|
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",
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",
4747
... |
48-
4486 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49-
4487 | | );
48+
4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49+
4459 | | );
5050
| |_________^
5151
note: called by `ptr_copy::copy_via_raw_ptr`
5252
--> $DIR/ptr_copy.rs:28:18

0 commit comments

Comments
 (0)