about summary refs log tree commit diff
path: root/tests/rustdoc-ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-04-14 13:33:44 +0000
committerbors <bors@rust-lang.org>2025-04-14 13:33:44 +0000
commit07d3fd1d9b9c1f07475b96a9d168564bf528db68 (patch)
tree68d8b3aef8e1a574def65116056d12d546265621 /tests/rustdoc-ui
parentc580c498a1fe144d7c5b2dfc7faab1a229aa288b (diff)
parentdc3a586eed198548316fcbfff2d5c28df0728750 (diff)
downloadrust-07d3fd1d9b9c1f07475b96a9d168564bf528db68.tar.gz
rust-07d3fd1d9b9c1f07475b96a9d168564bf528db68.zip
Auto merge of #138603 - xizheyin:issue-137405, r=chenyukang
Report line number of test when should_panic test failed

Closes #137405

---

try-job: x86_64-gnu-llvm-19-3
try-job: test-various
Diffstat (limited to 'tests/rustdoc-ui')
-rw-r--r--tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout b/tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout
index 90c0463d832..2b04b77c9dc 100644
--- a/tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout
+++ b/tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout
@@ -5,7 +5,7 @@ test $DIR/failed-doctest-should-panic.rs - Foo (line 10) - should panic ... FAIL
 failures:
 
 ---- $DIR/failed-doctest-should-panic.rs - Foo (line 10) stdout ----
-note: test did not panic as expected
+note: test did not panic as expected at $DIR/failed-doctest-should-panic.rs:10:0
 
 failures:
     $DIR/failed-doctest-should-panic.rs - Foo (line 10)