Skip to content

Commit 2b91b7f

Browse files
hosseind75hosseind88
authored andcommitted
ICEs should print the top of the query stack
1 parent 2124e9b commit 2b91b7f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

compiler/rustc_middle/src/ty/query/plumbing.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,7 @@ impl<'tcx> TyCtxt<'tcx> {
124124
})
125125
}
126126

127-
<<<<<<< HEAD
128-
pub fn try_print_query_stack(
129-
handler: &Handler,
130-
num_frames: Option<usize>,
131-
backtrace: Option<bool>,
132-
) {
133-
=======
134127
pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
135-
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
136128
eprintln!("query stack during panic:");
137129

138130
// Be careful reyling on global state here: this code is called from
@@ -146,11 +138,7 @@ impl<'tcx> TyCtxt<'tcx> {
146138
let mut i = 0;
147139

148140
while let Some(query) = current_query {
149-
<<<<<<< HEAD
150-
if backtrace.unwrap() == false && i == num_frames.unwrap() {
151-
=======
152-
if num_frames == Some(i) {
153-
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
141+
if Some(i) == num_frames {
154142
break;
155143
}
156144
let query_info =

0 commit comments

Comments
 (0)