Review comments

This commit is contained in:
Jack Huey 2020-10-11 17:14:07 -04:00
parent dd5c9bf139
commit 11d62aa284
4 changed files with 36 additions and 13 deletions

View file

@ -718,11 +718,10 @@ fn get_rust_try_fn<'ll, 'tcx>(
hir::Unsafety::Unsafe,
Abi::Rust,
)));
let output = tcx.types.i32;
// `unsafe fn(unsafe fn(*mut i8) -> (), unsafe fn(*mut i8, *mut i8) -> ()) -> i32`
// `unsafe fn(unsafe fn(*mut i8) -> (), *mut i8, unsafe fn(*mut i8, *mut i8) -> ()) -> i32`
let rust_fn_sig = ty::Binder::dummy(cx.tcx.mk_fn_sig(
vec![try_fn_ty, i8p, catch_fn_ty].into_iter(),
output,
tcx.types.i32,
false,
hir::Unsafety::Unsafe,
Abi::Rust,