Skip to content

Commit 6e9c21d

Browse files
committed
ZJIT: #[track_caller] on assert_compiles() and friend
Like other assertion functions
1 parent 7c176da commit 6e9c21d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

zjit/src/cruby.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,7 @@ pub mod test_utils {
13141314
}
13151315

13161316
/// Like inspect, but also asserts that all compilations triggered by this program succeed.
1317+
#[track_caller]
13171318
pub fn assert_compiles_allowing_exits(program: &str) -> String {
13181319
use crate::state::ZJITState;
13191320
ZJITState::enable_assert_compiles();
@@ -1324,6 +1325,7 @@ pub mod test_utils {
13241325

13251326
/// Like inspect, but also asserts that all compilations triggered by this program succeed and
13261327
/// no side exits occurr during the program.
1328+
#[track_caller]
13271329
pub fn assert_compiles(program: &str) -> String {
13281330
use crate::state::ZJITState;
13291331
let exits_before = crate::stats::total_exit_count();

0 commit comments

Comments
 (0)