1
Fork 0

Rollup merge of #135596 - compiler-errors:stack, r=oli-obk

Properly note when query stack is being cut off

cc #70953

also, i'm not certain whether we should even limit this at all. i don't see the problem with printing the full query stack, apparently it was limited b/c we used to ICE? but we're already printing the full stack to disk since #108714.

r? oli-obk
This commit is contained in:
Matthias Krüger 2025-01-22 20:37:25 +01:00 committed by GitHub
commit 5fab5429c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 20 additions and 15 deletions

View file

@ -1528,9 +1528,9 @@ fn report_ice(
// If backtraces are enabled, also print the query stack
let backtrace = env::var_os("RUST_BACKTRACE").is_some_and(|x| &x != "0");
let num_frames = if backtrace { None } else { Some(2) };
let limit_frames = if backtrace { None } else { Some(2) };
interface::try_print_query_stack(dcx, num_frames, file);
interface::try_print_query_stack(dcx, limit_frames, file);
// We don't trust this callback not to panic itself, so run it at the end after we're sure we've
// printed all the relevant info.