Bless a test for #70963

This commit is contained in:
Pavel Grigorenko 2024-08-18 21:00:40 +03:00
parent 0d4259e68e
commit 683ef6002b
2 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,7 @@
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC" //@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
// //
// Regression test for issue #70963 // Regression test for issue #70963
// The captured stderr from this test reports a location // The reported panic location should not be `<::core::macros::panic macros>`.
// inside `VecDeque::with_capacity`, instead of `<::core::macros::panic macros>`
fn main() { fn main() {
std::collections::VecDeque::<String>::with_capacity(!0); std::collections::VecDeque::<String>::with_capacity(!0);
} }

View File

@ -1,3 +1,3 @@
thread 'main' panicked at alloc/src/raw_vec.rs:LL:CC: thread 'main' panicked at $DIR/panic-location.rs:LL:CC:
capacity overflow capacity overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace