diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-22 20:37:25 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 20:37:25 +0100 | 
| commit | 5fab5429c4a48d606e1722a68eecbd40662daa75 (patch) | |
| tree | 15062726d8f8df0dff0f5b62a43a7d5f345a6664 /compiler/rustc_driver_impl | |
| parent | b4266b0bcdbfcf40c3b76f37a9b31dbc3f1992bb (diff) | |
| parent | be56f10a694d4a34c9d02b90f44788040b325a8a (diff) | |
| download | rust-5fab5429c4a48d606e1722a68eecbd40662daa75.tar.gz rust-5fab5429c4a48d606e1722a68eecbd40662daa75.zip | |
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
Diffstat (limited to 'compiler/rustc_driver_impl')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 414d1205b0e..8b666c9100f 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -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. | 
