change approach and run ui tests

This commit is contained in:
hosseind75 2020-09-19 19:54:04 +04:30 committed by hosseind88
parent 01f838a626
commit 2bfdd644dc
4 changed files with 7 additions and 5 deletions

View File

@ -124,11 +124,7 @@ impl<'tcx> TyCtxt<'tcx> {
}) })
} }
pub fn try_print_query_stack( pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
handler: &Handler,
num_frames: Option<usize>,
backtrace: Option<bool>,
) {
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

View File

@ -1,3 +1,5 @@
query stack during panic:
end of query stack
error: proc macro panicked error: proc macro panicked
--> $DIR/invalid-punct-ident-1.rs:19:1 --> $DIR/invalid-punct-ident-1.rs:19:1
| |

View File

@ -1,3 +1,5 @@
query stack during panic:
end of query stack
error: proc macro panicked error: proc macro panicked
--> $DIR/invalid-punct-ident-2.rs:19:1 --> $DIR/invalid-punct-ident-2.rs:19:1
| |

View File

@ -1,3 +1,5 @@
query stack during panic:
end of query stack
error: proc macro panicked error: proc macro panicked
--> $DIR/invalid-punct-ident-3.rs:19:1 --> $DIR/invalid-punct-ident-3.rs:19:1
| |