Skip to content

Commit 2bfdd64

Browse files
hosseind75hosseind88
authored andcommitted
change approach and run ui tests
1 parent 01f838a commit 2bfdd64

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

compiler/rustc_middle/src/ty/query/plumbing.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ impl<'tcx> TyCtxt<'tcx> {
124124
})
125125
}
126126

127-
pub fn try_print_query_stack(
128-
handler: &Handler,
129-
num_frames: Option<usize>,
130-
backtrace: Option<bool>,
131-
) {
127+
pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
132128
eprintln!("query stack during panic:");
133129

134130
// Be careful reyling on global state here: this code is called from

src/test/ui/proc-macro/invalid-punct-ident-1.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
query stack during panic:
2+
end of query stack
13
error: proc macro panicked
24
--> $DIR/invalid-punct-ident-1.rs:19:1
35
|

src/test/ui/proc-macro/invalid-punct-ident-2.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
query stack during panic:
2+
end of query stack
13
error: proc macro panicked
24
--> $DIR/invalid-punct-ident-2.rs:19:1
35
|

src/test/ui/proc-macro/invalid-punct-ident-3.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
query stack during panic:
2+
end of query stack
13
error: proc macro panicked
24
--> $DIR/invalid-punct-ident-3.rs:19:1
35
|

0 commit comments

Comments
 (0)