about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/intrinsic.rs
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2024-05-02 17:49:23 +0200
committerWaffle Lapkin <waffle.lapkin@gmail.com>2024-05-02 17:49:23 +0200
commit698d7a031eb65a9d47952f7ba3b13aa16fcbb11b (patch)
treeea8cadc9b70bdb1e67afc69f40231016bf535768 /compiler/rustc_codegen_llvm/src/intrinsic.rs
parentf92d49b7fe059e05eea43d7fc530aa96b8028fed (diff)
downloadrust-698d7a031eb65a9d47952f7ba3b13aa16fcbb11b.tar.gz
rust-698d7a031eb65a9d47952f7ba3b13aa16fcbb11b.zip
Inline & delete `Ty::new_unit`, since it's just a field access
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/intrinsic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs
index 41347333ea6..56550dbfa4b 100644
--- a/compiler/rustc_codegen_llvm/src/intrinsic.rs
+++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs
@@ -984,7 +984,7 @@ fn get_rust_try_fn<'ll, 'tcx>(
         tcx,
         ty::Binder::dummy(tcx.mk_fn_sig(
             [i8p],
-            Ty::new_unit(tcx),
+            tcx.types.unit,
             false,
             hir::Unsafety::Unsafe,
             Abi::Rust,
@@ -995,7 +995,7 @@ fn get_rust_try_fn<'ll, 'tcx>(
         tcx,
         ty::Binder::dummy(tcx.mk_fn_sig(
             [i8p, i8p],
-            Ty::new_unit(tcx),
+            tcx.types.unit,
             false,
             hir::Unsafety::Unsafe,
             Abi::Rust,