Skip to content

Commit 963d804

Browse files
committed
Update tests
1 parent 5ac7fdc commit 963d804

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/out/refcount/no_direct_callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn main() {
2222
}
2323
fn main_0() -> i32 {
2424
return ({
25-
let _fn: FnPtr<fn() -> bool> = fn_ptr!(test1_0, fn() -> bool);
25+
let _fn: FnPtr<fn() -> bool> = FnPtr::<fn() -> bool>::new(test1_0);
2626
test_1(_fn)
2727
});
2828
}

tests/unit/out/unsafe/no_direct_callee.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::rc::Rc;
1010
pub unsafe fn test1_0() -> bool {
1111
return false;
1212
}
13-
pub unsafe fn test_1(mut fn_: Option<fn() -> bool>) -> i32 {
13+
pub unsafe fn test_1(mut fn_: Option<unsafe fn() -> bool>) -> i32 {
1414
if !(unsafe { (fn_).unwrap()() }) {
1515
return 1;
1616
}
@@ -23,7 +23,7 @@ pub fn main() {
2323
}
2424
unsafe fn main_0() -> i32 {
2525
return (unsafe {
26-
let _fn: Option<fn() -> bool> = Some(test1_0);
26+
let _fn: Option<unsafe fn() -> bool> = Some(test1_0);
2727
test_1(_fn)
2828
});
2929
}

0 commit comments

Comments
 (0)