We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def44c5 commit cf7788dCopy full SHA for cf7788d
compiler/rustc_codegen_llvm/src/type_of.rs
@@ -225,7 +225,7 @@ impl<'tcx> LayoutLlvmExt<'tcx> for TyAndLayout<'tcx> {
225
return llty;
226
}
227
let llty = match *self.ty.kind() {
228
- ty::Ref(..) | ty::RawPtr(ty::TypeAndMut { .. }) => cx.type_ptr(),
+ ty::Ref(..) | ty::RawPtr(_) => cx.type_ptr(),
229
ty::Adt(def, _) if def.is_box() => cx.type_ptr(),
230
ty::FnPtr(sig) => {
231
cx.fn_ptr_backend_type(cx.fn_abi_of_fn_ptr(sig, ty::List::empty()))
0 commit comments