diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-20 08:31:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-20 08:31:42 +0200 |
| commit | ecbd110c7e3c434db5128f33bd681ee6c0ac491a (patch) | |
| tree | ff78ae633953ade1dcaf9eaa9b673c9703f5b95d /compiler/rustc_interface/src/interface.rs | |
| parent | 199d3bf3e406934a40d43c32333108a064be627e (diff) | |
| parent | b6d0d6da553d3836767b484530b23ad89807f470 (diff) | |
| download | rust-ecbd110c7e3c434db5128f33bd681ee6c0ac491a.tar.gz rust-ecbd110c7e3c434db5128f33bd681ee6c0ac491a.zip | |
Rollup merge of #125302 - workingjubilee:prefer-my-stack-neat, r=compiler-errors
defrost `RUST_MIN_STACK=ice rustc hello.rs` I didn't think too hard about testing my previous PR rust-lang/rust#122847 which makes our stack overflow handler assist people in discovering the `RUST_MIN_STACK` variable (which apparently is surprisingly useful for Really Big codebases). After it was merged, some useful comments left in a drive-by review led me to discover I had added an ICE. This reworks the code a bit to explain the rationale, remove the ICE that I introduced, and properly test one of the diagnostics.
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 1 |
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 }, |
