about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-07-12 14:31:00 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-07-12 14:31:00 +0000
commitc28878d8f2fbb1b00baa6f6475fb3ffc0fb9e57c (patch)
treed1c204e57bcd5bb481a4903a7d4b3b085d64023d
parent2922d41fa5f01e699d47e3b1676ecf0ccb960648 (diff)
downloadrust-c28878d8f2fbb1b00baa6f6475fb3ffc0fb9e57c.tar.gz
rust-c28878d8f2fbb1b00baa6f6475fb3ffc0fb9e57c.zip
Rustup to rustc 1.73.0-nightly (993deaa0b 2023-07-11)
-rw-r--r--build_system/tests.rs4
-rw-r--r--patches/stdlib-lock.toml16
-rw-r--r--rust-toolchain2
-rw-r--r--src/base.rs17
-rw-r--r--src/intrinsics/llvm_x86.rs4
5 files changed, 19 insertions, 24 deletions
diff --git a/build_system/tests.rs b/build_system/tests.rs
index 60bf43a15d0..8ff94702dd7 100644
--- a/build_system/tests.rs
+++ b/build_system/tests.rs
@@ -125,8 +125,8 @@ pub(crate) static REGEX: CargoProject = CargoProject::new(&REGEX_REPO.source_dir
 pub(crate) static PORTABLE_SIMD_REPO: GitRepo = GitRepo::github(
     "rust-lang",
     "portable-simd",
-    "73d7eb5f73ba6abd3328c9c49c524d5f945498e0",
-    "94498c03fa13ef6c",
+    "7c7dbe0c505ccbc02ff30c1e37381ab1d47bf46f",
+    "5bcc9c544f6fa7bd",
     "portable-simd",
 );
 
diff --git a/patches/stdlib-lock.toml b/patches/stdlib-lock.toml
index ef2c35c77c5..96e079f3bcf 100644
--- a/patches/stdlib-lock.toml
+++ b/patches/stdlib-lock.toml
@@ -4,9 +4,9 @@ version = 3
 
 [[package]]
 name = "addr2line"
-version = "0.19.0"
+version = "0.20.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97"
+checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3"
 dependencies = [
  "compiler_builtins",
  "gimli",
@@ -74,9 +74,9 @@ dependencies = [
 
 [[package]]
 name = "compiler_builtins"
-version = "0.1.93"
+version = "0.1.95"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76630810d973ecea3dbf611e1b7aecfb1012751ef1ff8de3998f89014a166781"
+checksum = "6866e0f3638013234db3c89ead7a14d278354338e7237257407500009012b23f"
 dependencies = [
  "cc",
  "rustc-std-workspace-core",
@@ -193,9 +193,9 @@ dependencies = [
 
 [[package]]
 name = "miniz_oxide"
-version = "0.6.2"
+version = "0.7.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa"
+checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
 dependencies = [
  "adler",
  "compiler_builtins",
@@ -205,9 +205,9 @@ dependencies = [
 
 [[package]]
 name = "object"
-version = "0.30.4"
+version = "0.31.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385"
+checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1"
 dependencies = [
  "compiler_builtins",
  "memchr",
diff --git a/rust-toolchain b/rust-toolchain
index 3c3a405ab99..843990e307a 100644
--- a/rust-toolchain
+++ b/rust-toolchain
@@ -1,3 +1,3 @@
 [toolchain]
-channel = "nightly-2023-06-28"
+channel = "nightly-2023-07-12"
 components = ["rust-src", "rustc-dev", "llvm-tools"]
diff --git a/src/base.rs b/src/base.rs
index edffa769718..8403093861c 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -177,18 +177,13 @@ pub(crate) fn compile_fn(
         match module.define_function(codegened_func.func_id, context) {
             Ok(()) => {}
             Err(ModuleError::Compilation(CodegenError::ImplLimitExceeded)) => {
-                // FIXME pass the error to the main thread and do a span_fatal instead
-                rustc_session::early_error(
-                    rustc_session::config::ErrorOutputType::HumanReadable(
-                        rustc_errors::emitter::HumanReadableErrorType::Default(
-                            rustc_errors::emitter::ColorConfig::Auto,
-                        ),
-                    ),
-                    format!(
-                        "backend implementation limit exceeded while compiling {name}",
-                        name = codegened_func.symbol_name
-                    ),
+                let handler = rustc_session::EarlyErrorHandler::new(
+                    rustc_session::config::ErrorOutputType::default(),
                 );
+                handler.early_error(format!(
+                    "backend implementation limit exceeded while compiling {name}",
+                    name = codegened_func.symbol_name
+                ));
             }
             Err(err) => {
                 panic!("Error while defining {name}: {err:?}", name = codegened_func.symbol_name);
diff --git a/src/intrinsics/llvm_x86.rs b/src/intrinsics/llvm_x86.rs
index 61dac0cce8b..6d07788149c 100644
--- a/src/intrinsics/llvm_x86.rs
+++ b/src/intrinsics/llvm_x86.rs
@@ -531,7 +531,7 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
 
             let (cb_out, c) = llvm_add_sub(fx, BinOp::Add, c_in, a, b);
 
-            let layout = fx.layout_of(fx.tcx.mk_tup(&[fx.tcx.types.u8, a.layout().ty]));
+            let layout = fx.layout_of(Ty::new_tup(fx.tcx, &[fx.tcx.types.u8, a.layout().ty]));
             let val = CValue::by_val_pair(cb_out, c, layout);
             ret.write_cvalue(fx, val);
         }
@@ -550,7 +550,7 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
 
             let (cb_out, c) = llvm_add_sub(fx, BinOp::Sub, b_in, a, b);
 
-            let layout = fx.layout_of(fx.tcx.mk_tup(&[fx.tcx.types.u8, a.layout().ty]));
+            let layout = fx.layout_of(Ty::new_tup(fx.tcx, &[fx.tcx.types.u8, a.layout().ty]));
             let val = CValue::by_val_pair(cb_out, c, layout);
             ret.write_cvalue(fx, val);
         }