diff options
| author | hosseind75 <dindar95@bk.ru> | 2020-09-19 18:37:58 +0430 |
|---|---|---|
| committer | hosseind88 <hosseind88@mail.ru> | 2020-10-09 20:57:45 +0330 |
| commit | 01f838a6269460ea97fdf305b1afb236f6528b74 (patch) | |
| tree | d868f1d48688e2ebbe8abe5d0d00a0c1da6e4976 | |
| parent | 2b91b7fba99c47ffc214b2fd36b586b844a509bd (diff) | |
| download | rust-01f838a6269460ea97fdf305b1afb236f6528b74.tar.gz rust-01f838a6269460ea97fdf305b1afb236f6528b74.zip | |
run full query stack print just when RUST_BACKTRACE is set
| -rw-r--r-- | compiler/rustc_middle/src/ty/query/plumbing.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/query/plumbing.rs b/compiler/rustc_middle/src/ty/query/plumbing.rs index 451ed6506f4..61f8cd8caad 100644 --- a/compiler/rustc_middle/src/ty/query/plumbing.rs +++ b/compiler/rustc_middle/src/ty/query/plumbing.rs @@ -124,7 +124,11 @@ impl<'tcx> TyCtxt<'tcx> { }) } - pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) { + pub fn try_print_query_stack( + handler: &Handler, + num_frames: Option<usize>, + backtrace: Option<bool>, + ) { eprintln!("query stack during panic:"); // Be careful reyling on global state here: this code is called from |
