about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPavel Grigorenko <GrigorenkoPV@ya.ru>2024-08-18 21:00:40 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2024-09-20 01:20:10 +0300
commit683ef6002b28091607bd33f8d9d76ab7dc5b42cc (patch)
treeaed35aabbf939cfd4f4a5650956f89b786da57aa
parent0d4259e68e5211b99dea028c1b9071362e7f3b6f (diff)
downloadrust-683ef6002b28091607bd33f8d9d76ab7dc5b42cc.tar.gz
rust-683ef6002b28091607bd33f8d9d76ab7dc5b42cc.zip
Bless a test for #70963
-rw-r--r--tests/ui/hygiene/panic-location.rs3
-rw-r--r--tests/ui/hygiene/panic-location.run.stderr2
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/hygiene/panic-location.rs b/tests/ui/hygiene/panic-location.rs
index 7b20f1683a9..580a8bcff05 100644
--- a/tests/ui/hygiene/panic-location.rs
+++ b/tests/ui/hygiene/panic-location.rs
@@ -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);
 }
diff --git a/tests/ui/hygiene/panic-location.run.stderr b/tests/ui/hygiene/panic-location.run.stderr
index bfed4cd6650..b9086ecef81 100644
--- a/tests/ui/hygiene/panic-location.run.stderr
+++ b/tests/ui/hygiene/panic-location.run.stderr
@@ -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