Skip to content

Commit 8e21493

Browse files
committed
rustup: update to nightly-2024-12-10.
1 parent 9f5dcf9 commit 8e21493

File tree

5 files changed

+25
-32
lines changed

5 files changed

+25
-32
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-01"
21+
channel = "nightly-2024-12-10"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = 7442931d49b199ad0a1cc0f8ca54e327b5139b66"#;
23+
# commit_hash = a224f3807e58afc9353510f1d556c607d367545d"#;
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl<'tcx> ConstCodegenMethods<'tcx> for CodegenCx<'tcx> {
254254
(value, AddressSpace::DATA)
255255
}
256256
GlobalAlloc::Function { instance } => (
257-
self.get_fn_addr(instance.polymorphize(self.tcx)),
257+
self.get_fn_addr(instance),
258258
self.data_layout().instruction_address_space,
259259
),
260260
GlobalAlloc::VTable(vty, dyn_ty) => {

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ use maybe_pqp_cg_ssa::{CodegenResults, CompiledModule, ModuleCodegen, ModuleKind
151151
use rspirv::binary::Assemble;
152152
use rustc_ast::expand::allocator::AllocatorKind;
153153
use rustc_data_structures::fx::FxIndexMap;
154-
use rustc_errors::{DiagCtxtHandle, ErrorGuaranteed, FatalError};
154+
use rustc_errors::{DiagCtxtHandle, FatalError};
155155
use rustc_metadata::EncodedMetadata;
156156
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
157157
use rustc_middle::mir::mono::{MonoItem, MonoItemData};
@@ -310,12 +310,7 @@ impl CodegenBackend for SpirvCodegenBackend {
310310
.join(sess)
311311
}
312312

313-
fn link(
314-
&self,
315-
sess: &Session,
316-
codegen_results: CodegenResults,
317-
outputs: &OutputFilenames,
318-
) -> Result<(), ErrorGuaranteed> {
313+
fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) {
319314
let timer = sess.timer("link_crate");
320315
link::link(
321316
sess,
@@ -324,8 +319,6 @@ impl CodegenBackend for SpirvCodegenBackend {
324319
codegen_results.crate_info.local_crate_name.as_str(),
325320
);
326321
drop(timer);
327-
328-
sess.dcx().has_errors().map_or(Ok(()), Err)
329322
}
330323
}
331324

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-01"
2+
channel = "nightly-2024-12-10"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = 7442931d49b199ad0a1cc0f8ca54e327b5139b66
4+
# commit_hash = a224f3807e58afc9353510f1d556c607d367545d
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/ptr_copy.normal.stderr

Lines changed: 18 additions & 18 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:4158:9
2+
--> $CORE_SRC/intrinsics/mod.rs:4445:9
33
|
4-
4158 | copy(src, dst, count)
4+
4445 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: used from within `core::intrinsics::copy::<f32>`
8-
--> $CORE_SRC/intrinsics/mod.rs:4134:21
8+
--> $CORE_SRC/intrinsics/mod.rs:4422:21
99
|
10-
4134 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+
4422 | 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,27 +28,27 @@ note: called by `main`
2828
error: cannot cast between pointer types
2929
from `*f32`
3030
to `*struct () { }`
31-
--> $CORE_SRC/intrinsics/mod.rs:4146:9
31+
--> $CORE_SRC/intrinsics/mod.rs:4433:9
3232
|
33-
4146 | / ub_checks::assert_unsafe_precondition!(
34-
4147 | | check_language_ub,
35-
4148 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
36-
4149 | | (
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",
36+
4436 | | (
3737
... |
38-
4156 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39-
4157 | | );
38+
4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39+
4444 | | );
4040
| |_________^
4141
|
4242
note: used from within `core::intrinsics::copy::<f32>`
43-
--> $CORE_SRC/intrinsics/mod.rs:4146:9
43+
--> $CORE_SRC/intrinsics/mod.rs:4433:9
4444
|
45-
4146 | / ub_checks::assert_unsafe_precondition!(
46-
4147 | | check_language_ub,
47-
4148 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
48-
4149 | | (
45+
4433 | / ub_checks::assert_unsafe_precondition!(
46+
4434 | | check_language_ub,
47+
4435 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
48+
4436 | | (
4949
... |
50-
4156 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51-
4157 | | );
50+
4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51+
4444 | | );
5252
| |_________^
5353
note: called by `ptr_copy::copy_via_raw_ptr`
5454
--> $DIR/ptr_copy.rs:28:18

0 commit comments

Comments
 (0)