Skip to content

Commit

Permalink
Bless a test for #70963
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV committed Aug 18, 2024
1 parent 9499ec3 commit 90d80a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/ui/hygiene/panic-location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
//
// Regression test for issue #70963
// The captured stderr from this test reports a location
// inside `VecDeque::with_capacity`, instead of `<::core::macros::panic macros>`
// The reported panic location should not be `<::core::macros::panic macros>`.
fn main() {
std::collections::VecDeque::<String>::with_capacity(!0);
}
2 changes: 1 addition & 1 deletion tests/ui/hygiene/panic-location.run.stderr
Original file line number Diff line number Diff line change
@@ -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
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 comments on commit 90d80a9

Please sign in to comment.