about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-05-19 17:25:25 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-05-19 18:28:14 -0700
commit9985821b2fe20a969b799ec920563170fcc45d8f (patch)
treecb0b0ee7572eb3fafa3e312844d290d6b2db91d0 /compiler/rustc_interface/src/interface.rs
parentdef6b99b4a8e1362c9271e39de68e63cacac11ec (diff)
downloadrust-9985821b2fe20a969b799ec920563170fcc45d8f.tar.gz
rust-9985821b2fe20a969b799ec920563170fcc45d8f.zip
defrost RUST_MIN_STACK=ice rustc hello.rs
An earlier commit included the change for a suggestion here.
Unfortunately, it also used unwrap instead of dying properly.
Roll out the ~~rice paper~~ EarlyDiagCtxt before we do anything that
might leave a mess.
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
-rw-r--r--compiler/rustc_interface/src/interface.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
index 55304bbbd92..d43be6cebcb 100644
--- a/compiler/rustc_interface/src/interface.rs
+++ b/compiler/rustc_interface/src/interface.rs
@@ -389,6 +389,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
     let hash_kind = config.opts.unstable_opts.src_hash_algorithm(&target);
 
     util::run_in_thread_pool_with_globals(
+        &early_dcx,
         config.opts.edition,
         config.opts.unstable_opts.threads,
         SourceMapInputs { file_loader, path_mapping, hash_kind },