From 9985821b2fe20a969b799ec920563170fcc45d8f Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sun, 19 May 2024 17:25:25 -0700 Subject: 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. --- compiler/rustc_interface/src/interface.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_interface/src/interface.rs') 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(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 }, -- cgit 1.4.1-3-g733a5