Skip to content

Commit 7b3d1b7

Browse files
committed
normalize backtrace error messages
1 parent 90db98d commit 7b3d1b7

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

tests/ui/const-generics/late-bound-vars/in_closure.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
// normalize-stderr-test "\s\d{1,}: .*\n" -> ""
1414
// normalize-stderr-test "\s at .*\n" -> ""
1515
// normalize-stderr-test ".*note: Some details.*\n" -> ""
16-
// normalize-stderr-test "\n\n[ ]*\n" -> ""
16+
// normalize-stderr-test "\n[ ]*\n" -> ""
1717
// normalize-stderr-test "compiler/.*: projection" -> "projection"
18-
// this should run-pass
1918
// normalize-stderr-test ".*omitted \d{1,} frame.*\n" -> ""
19+
// normalize-stderr-test "error: [\s\n]*query stack during panic:\n" -> ""
20+
// this should run-pass
2021

2122
#![feature(generic_const_exprs)]
2223
#![allow(incomplete_features)]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
error: query stack during panic:
21
#0 [mir_borrowck] borrow-checking `test::{closure#0}::{constant#1}`
32
#1 [mir_drops_elaborated_and_const_checked] elaborating drops for `test::{closure#0}::{constant#1}`
43
#2 [mir_for_ctfe] caching mir of `test::{closure#0}::{constant#1}` for CTFE
@@ -8,5 +7,4 @@ error: query stack during panic:
87
#6 [typeck] type-checking `test`
98
#7 [analysis] running analysis passes on this crate
109
end of query stack
11-
error: aborting due to previous error
12-
10+
error: aborting due to previous error

tests/ui/const-generics/late-bound-vars/simple.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// normalize-stderr-test "\n\n[ ]*\n" -> ""
1717
// normalize-stderr-test "compiler/.*: projection" -> "projection"
1818
// normalize-stderr-test ".*omitted \d{1,} frame.*\n" -> ""
19+
// normalize-stderr-test "error: [\s\n]*query stack" -> "error: query stack"
1920

2021
#![feature(generic_const_exprs)]
2122
#![allow(incomplete_features)]

tests/ui/generic-associated-types/issue-90014-tait2.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
// normalize-stderr-test "\n\n[ ]*\n" -> ""
2020
// normalize-stderr-test "compiler/.*: projection" -> "projection"
2121
// normalize-stderr-test ".*omitted \d{1,} frame.*\n" -> ""
22-
22+
// normalize-stderr-test "error: [\s\n]*query stack" -> "error: query stack"
23+
// normalize-stderr-test "[\n\s]*\nquery stack during panic:" -> "query stack during panic:"
2324
// edition:2018
2425

2526
#![feature(type_alias_impl_trait)]

tests/ui/generic-associated-types/issue-90014-tait2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error:
2-
--> $DIR/issue-90014-tait2.rs:43:27
2+
--> $DIR/issue-90014-tait2.rs:44:27
33
|
44
LL | fn make_fut(&self) -> Box<dyn for<'a> Trait<'a, Thing = Fut<'a>>> {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^query stack during panic:
6-
#0 [typeck] type-checking `<impl at $DIR/issue-90014-tait2.rs:42:1: 42:13>::make_fut`
6+
#0 [typeck] type-checking `<impl at $DIR/issue-90014-tait2.rs:43:1: 43:13>::make_fut`
77
#1 [type_of] computing type of `Fut::{opaque#0}`
88
#2 [check_mod_item_types] checking item types in top-level module
99
#3 [analysis] running analysis passes on this crate

0 commit comments

Comments
 (0)