Skip to content

Commit 5768c16

Browse files
committed
Make the panic info more useful
1 parent db8aca4 commit 5768c16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,6 +2469,7 @@ impl<'test> TestCx<'test> {
24692469
}
24702470
}
24712471

2472+
#[track_caller]
24722473
fn fatal(&self, err: &str) -> ! {
24732474
self.error(err);
24742475
error!("fatal error, panic: {:?}", err);

0 commit comments

Comments
 (0)