about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2023-07-29 16:32:03 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2023-07-29 16:32:03 -0400
commitcf7788d54b1b91cd3e778984f8dceada224e28ad (patch)
tree717d9c8389b92091d1a9049ebdbb2cb529d2e2b3 /compiler/rustc_codegen_llvm/src
parentdef44c56693327144e13e05dba286197f618ca0f (diff)
downloadrust-cf7788d54b1b91cd3e778984f8dceada224e28ad.tar.gz
rust-cf7788d54b1b91cd3e778984f8dceada224e28ad.zip
cg_llvm: clean up match
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/type_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/type_of.rs b/compiler/rustc_codegen_llvm/src/type_of.rs
index ac18fdfe07f..32e71c6a641 100644
--- a/compiler/rustc_codegen_llvm/src/type_of.rs
+++ b/compiler/rustc_codegen_llvm/src/type_of.rs
@@ -225,7 +225,7 @@ impl<'tcx> LayoutLlvmExt<'tcx> for TyAndLayout<'tcx> {
                 return llty;
             }
             let llty = match *self.ty.kind() {
-                ty::Ref(..) | ty::RawPtr(ty::TypeAndMut { .. }) => cx.type_ptr(),
+                ty::Ref(..) | ty::RawPtr(_) => cx.type_ptr(),
                 ty::Adt(def, _) if def.is_box() => cx.type_ptr(),
                 ty::FnPtr(sig) => {
                     cx.fn_ptr_backend_type(cx.fn_abi_of_fn_ptr(sig, ty::List::empty()))