1
Fork 0

ICEs should print the top of the query stack

This commit is contained in:
hosseind75 2020-09-19 17:51:24 +04:30 committed by hosseind88
parent 2124e9b50e
commit 2b91b7fba9

View file

@ -124,15 +124,7 @@ impl<'tcx> TyCtxt<'tcx> {
}) })
} }
<<<<<<< HEAD
pub fn try_print_query_stack(
handler: &Handler,
num_frames: Option<usize>,
backtrace: Option<bool>,
) {
=======
pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) { pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
eprintln!("query stack during panic:"); eprintln!("query stack during panic:");
// Be careful reyling on global state here: this code is called from // Be careful reyling on global state here: this code is called from
@ -146,11 +138,7 @@ impl<'tcx> TyCtxt<'tcx> {
let mut i = 0; let mut i = 0;
while let Some(query) = current_query { while let Some(query) = current_query {
<<<<<<< HEAD if Some(i) == num_frames {
if backtrace.unwrap() == false && i == num_frames.unwrap() {
=======
if num_frames == Some(i) {
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
break; break;
} }
let query_info = let query_info =