diff options
| author | hosseind75 <dindar95@bk.ru> | 2020-09-23 19:08:21 +0330 |
|---|---|---|
| committer | hosseind88 <hosseind88@mail.ru> | 2020-10-09 20:57:45 +0330 |
| commit | 6c0f06a107992eefa93a57f6f29f2a008e5051a1 (patch) | |
| tree | 54cfd56bdd34f1dee45ffc52596b143ed33abea4 | |
| parent | d1e30592b330bda437cc8584d30f751dc97c08fc (diff) | |
| download | rust-6c0f06a107992eefa93a57f6f29f2a008e5051a1.tar.gz rust-6c0f06a107992eefa93a57f6f29f2a008e5051a1.zip | |
fix show we're just showing... message instead of the end of query stack message when RUST_BACKTRACE=0
| -rw-r--r-- | compiler/rustc_middle/src/ty/query/plumbing.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/pattern/const-pat-ice.stderr | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/query/plumbing.rs b/compiler/rustc_middle/src/ty/query/plumbing.rs index 17eb8dbdca9..451ed6506f4 100644 --- a/compiler/rustc_middle/src/ty/query/plumbing.rs +++ b/compiler/rustc_middle/src/ty/query/plumbing.rs @@ -127,9 +127,6 @@ impl<'tcx> TyCtxt<'tcx> { pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) { eprintln!("query stack during panic:"); - if num_frames != None { - eprintln!("we're just showing a limited slice of the query stack"); - } // Be careful reyling on global state here: this code is called from // a panic hook, which means that the global `Handler` may be in a weird // state if it was responsible for triggering the panic. diff --git a/src/test/ui/pattern/const-pat-ice.stderr b/src/test/ui/pattern/const-pat-ice.stderr index 436958d210a..90497db519c 100644 --- a/src/test/ui/pattern/const-pat-ice.stderr +++ b/src/test/ui/pattern/const-pat-ice.stderr @@ -12,7 +12,6 @@ note: rustc VERSION running on TARGET note: compiler flags: FLAGS query stack during panic: -we're just showing a limited slice of the query stack #0 [check_match] match-checking `main` #1 [analysis] running analysis passes on this crate we're just showing a limited slice of the query stack |
