about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-16 18:37:45 +0000
committerMichael Goulet <michael@errs.io>2025-01-16 19:12:22 +0000
commitbe56f10a694d4a34c9d02b90f44788040b325a8a (patch)
treeef1a912ec301465f429f046583dab87fb92d66ff /compiler/rustc_driver_impl/src
parentd8a64098c9d0fb25699f657c6efff0bb418f7e18 (diff)
downloadrust-be56f10a694d4a34c9d02b90f44788040b325a8a.tar.gz
rust-be56f10a694d4a34c9d02b90f44788040b325a8a.zip
Properly note when query stack is being cut off
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs4
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 0413e5e8634..190c0a0ebfe 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -1530,9 +1530,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.