Skip to content
/ rust Public
forked from rust-lang/rust

Commit cf7788d

Browse files
cg_llvm: clean up match
1 parent def44c5 commit cf7788d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/type_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl<'tcx> LayoutLlvmExt<'tcx> for TyAndLayout<'tcx> {
225225
return llty;
226226
}
227227
let llty = match *self.ty.kind() {
228-
ty::Ref(..) | ty::RawPtr(ty::TypeAndMut { .. }) => cx.type_ptr(),
228+
ty::Ref(..) | ty::RawPtr(_) => cx.type_ptr(),
229229
ty::Adt(def, _) if def.is_box() => cx.type_ptr(),
230230
ty::FnPtr(sig) => {
231231
cx.fn_ptr_backend_type(cx.fn_abi_of_fn_ptr(sig, ty::List::empty()))

0 commit comments

Comments
 (0)