diff --git a/josh-sync.toml b/josh-sync.toml new file mode 100644 index 0000000000..2de9f9489c --- /dev/null +++ b/josh-sync.toml @@ -0,0 +1,3 @@ +repo = "rustc_codegen_cranelift" +filter = ":~(history=\"keep-trivial-merges,no-splice\")[:rev(<=5e120485964f4857f1ad70f7d661fd244d087668:prefix=compiler/rustc_codegen_cranelift,<=7bd21608dfab11ea536f7be8936cc7dfac5864fb:SQUASH)]:/compiler/rustc_codegen_cranelift" +filter-version = 2 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b83354ee49..d7e313a7a3 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2026-09-10" +channel = "nightly-2026-09-11" components = ["rust-src", "rustc-dev", "llvm-tools", "rustfmt"] profile = "minimal" diff --git a/rust-version b/rust-version new file mode 100644 index 0000000000..4dce583659 --- /dev/null +++ b/rust-version @@ -0,0 +1 @@ +ca0a6473ffde01deb7fce24cc04864cf723e14a0 diff --git a/src/common.rs b/src/common.rs index 1bdb3efefa..d31c8fc810 100644 --- a/src/common.rs +++ b/src/common.rs @@ -5,8 +5,9 @@ use rustc_index::IndexVec; use rustc_middle::ty::TypeFoldable; use rustc_middle::ty::layout::{ self, FnAbiError, FnAbiOfHelpers, FnAbiRequest, LayoutError, LayoutOfHelpers, + codegen_handle_fn_abi_err, }; -use rustc_span::{Spanned, Symbol}; +use rustc_span::Symbol; use rustc_target::callconv::FnAbi; use rustc_target::spec::{Arch, HasTargetSpec, Target}; @@ -453,23 +454,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for FullyMonomorphizedLayoutCx<'tcx> { span: Span, fn_abi_request: FnAbiRequest<'tcx>, ) -> ! { - if let FnAbiError::Layout(LayoutError::SizeOverflow(_) | LayoutError::InvalidSimd { .. }) = - err - { - self.0.sess.dcx().emit_fatal(Spanned { span, node: err }) - } else { - match fn_abi_request { - FnAbiRequest::OfFnPtr { sig, extra_args } => { - span_bug!(span, "`fn_abi_of_fn_ptr({sig}, {extra_args:?})` failed: {err:?}"); - } - FnAbiRequest::OfInstance { instance, extra_args } => { - span_bug!( - span, - "`fn_abi_of_instance({instance}, {extra_args:?})` failed: {err:?}" - ); - } - } - } + codegen_handle_fn_abi_err(self.0, err, span, fn_abi_request).raise_fatal() } }