Skip to content

Commit

Permalink
fix show we're just showing... message instead of the end of query st…
Browse files Browse the repository at this point in the history
…ack message when RUST_BACKTRACE=0
  • Loading branch information
hosseind75 authored and hosseind88 committed Oct 9, 2020
1 parent d1e3059 commit 6c0f06a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_middle/src/ty/query/plumbing.rs
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/pattern/const-pat-ice.stderr
Expand Up @@ -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

0 comments on commit 6c0f06a

Please sign in to comment.