We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d4259e commit 683ef60Copy full SHA for 683ef60
tests/ui/hygiene/panic-location.rs
@@ -4,8 +4,7 @@
4
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
5
//
6
// 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>`
+// The reported panic location should not be `<::core::macros::panic macros>`.
9
fn main() {
10
std::collections::VecDeque::<String>::with_capacity(!0);
11
}
tests/ui/hygiene/panic-location.run.stderr
@@ -1,3 +1,3 @@
1
-thread 'main' panicked at alloc/src/raw_vec.rs:LL:CC:
+thread 'main' panicked at $DIR/panic-location.rs:LL:CC:
2
capacity overflow
3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
0 commit comments