You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests marked as should_panic should report the line number of the test #137405
It would be useful for being able to easily navigate to failing tests if the tests don't panic when they should. Specifically, providing the file and line number of the failing test allows a user to use the mouse to navigate directly in one step from a test run in a vscode terminal window to the location of the failing test.
running 1 test
test dont_panic - should panic ... FAILED
successes:
successes:
failures:
---- dont_panic stdout ----
note: test did not panic as expected
failures:
dont_panic
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Implementation Constraints:
Use filename:line:column format - don't use a custom formate like "file at line x". Noted specifically This has happened in some parts of the rust ecosystem in the past (in rustfmt IIRC), and it makes the automatic navigation not work right.
Not as far as I'm aware. I'd encourage you to go for it. This doesn't seem like it would have any downside, so I think perhaps a PR would be good here.
Activity
xizheyin commentedon Mar 16, 2025
Is this currently being done by anyone? If not, I can try it. @joshka
joshka commentedon Mar 16, 2025
Not as far as I'm aware. I'd encourage you to go for it. This doesn't seem like it would have any downside, so I think perhaps a PR would be good here.
xizheyin commentedon Mar 16, 2025
@rustbot claim
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=<try>
Rollup merge of rust-lang#138603 - xizheyin:issue-137405, r=chenyukang
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=chenyukang
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=<try>
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=<try>
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=<try>
Rollup merge of rust-lang#138603 - xizheyin:issue-137405, r=chenyukang
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=chenyukang
Auto merge of rust-lang#138603 - xizheyin:issue-137405, r=chenyukang