Skip to content

Commit ca3a917

Browse files
committed
Enable close call for macos
1 parent bdaa90c commit ca3a917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
456456
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
457457
}
458458

459-
"close" => {
459+
"close" | "close$NOCANCEL" => {
460460
let result = this.close(args[0])?;
461461
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
462462
}

0 commit comments

Comments
 (0)