Review comments
This commit is contained in:
parent
dd5c9bf139
commit
11d62aa284
4 changed files with 36 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue