Rollup merge of #124624 - WaffleLapkin:old_unit, r=fmease
Use `tcx.types.unit` instead of `Ty::new_unit(tcx)` I don't think there is any need for the function, given that we can just access the `.types`, similarly to all other primitives?
This commit is contained in:
commit
7ed351a508
@ -1223,7 +1223,7 @@ fn get_rust_try_fn<'a, 'gcc, 'tcx>(
|
|||||||
tcx,
|
tcx,
|
||||||
ty::Binder::dummy(tcx.mk_fn_sig(
|
ty::Binder::dummy(tcx.mk_fn_sig(
|
||||||
iter::once(i8p),
|
iter::once(i8p),
|
||||||
Ty::new_unit(tcx),
|
tcx.types.unit,
|
||||||
false,
|
false,
|
||||||
rustc_hir::Unsafety::Unsafe,
|
rustc_hir::Unsafety::Unsafe,
|
||||||
Abi::Rust,
|
Abi::Rust,
|
||||||
@ -1234,7 +1234,7 @@ fn get_rust_try_fn<'a, 'gcc, 'tcx>(
|
|||||||
tcx,
|
tcx,
|
||||||
ty::Binder::dummy(tcx.mk_fn_sig(
|
ty::Binder::dummy(tcx.mk_fn_sig(
|
||||||
[i8p, i8p].iter().cloned(),
|
[i8p, i8p].iter().cloned(),
|
||||||
Ty::new_unit(tcx),
|
tcx.types.unit,
|
||||||
false,
|
false,
|
||||||
rustc_hir::Unsafety::Unsafe,
|
rustc_hir::Unsafety::Unsafe,
|
||||||
Abi::Rust,
|
Abi::Rust,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user