about summary refs log tree commit diff
path: root/src/common.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-02-16 12:14:53 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-02-16 12:14:53 +0100
commit4563abd4f1ea42365c8aab7c79d29ddb5e1541c2 (patch)
tree4c0e8570d3ab21a982469a13b5b9f710221dee04 /src/common.rs
parentd4594457993600987b4370ab5b258d4276e12b37 (diff)
parent06bc64df9213e928bf37c565f9c2f6b09391a384 (diff)
downloadrust-4563abd4f1ea42365c8aab7c79d29ddb5e1541c2.tar.gz
rust-4563abd4f1ea42365c8aab7c79d29ddb5e1541c2.zip
Sync from rust a240ccd81c74c105b6f5fe84c46f8d36edb7e306
Diffstat (limited to 'src/common.rs')
-rw-r--r--src/common.rs4
1 files changed, 2 insertions, 2 deletions
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<types::Typ
         },
         ty::FnPtr(_) => 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;