X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcommon.rs;h=50f98965ab5d22ac31f735a56e18385e87bd2f69;hb=6a20fa93b594a0d166402e811a033c6f1e153cf2;hp=3b6025c73d10bd7a0113e2b31662dd7a20d9753a;hpb=4e39cde7f3584b5bf5017346b53f8493f32de7f8;p=rust.git diff --git a/src/common.rs b/src/common.rs index 3b6025c73d1..50f98965ab5 100644 --- a/src/common.rs +++ b/src/common.rs @@ -61,7 +61,7 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option pointer_ty(tcx), ty::RawPtr(TypeAndMut { ty: pointee_ty, mutbl: _ }) | ty::Ref(_, pointee_ty, _) => { - if has_ptr_meta(tcx, pointee_ty) { + if has_ptr_meta(tcx, *pointee_ty) { return None; } else { pointer_ty(tcx) @@ -100,7 +100,7 @@ fn clif_pair_type_from_ty<'tcx>( (a, b) } ty::RawPtr(TypeAndMut { ty: pointee_ty, mutbl: _ }) | ty::Ref(_, pointee_ty, _) => { - if has_ptr_meta(tcx, pointee_ty) { + if has_ptr_meta(tcx, *pointee_ty) { (pointer_ty(tcx), pointer_ty(tcx)) } else { return None;