Skip to content

Commit 683ef60

Browse files
committed
Bless a test for #70963
1 parent 0d4259e commit 683ef60

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/ui/hygiene/panic-location.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
55
//
66
// Regression test for issue #70963
7-
// The captured stderr from this test reports a location
8-
// inside `VecDeque::with_capacity`, instead of `<::core::macros::panic macros>`
7+
// The reported panic location should not be `<::core::macros::panic macros>`.
98
fn main() {
109
std::collections::VecDeque::<String>::with_capacity(!0);
1110
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
thread 'main' panicked at alloc/src/raw_vec.rs:LL:CC:
1+
thread 'main' panicked at $DIR/panic-location.rs:LL:CC:
22
capacity overflow
33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)