diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-16 12:14:53 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-16 12:14:53 +0100 |
| commit | 4563abd4f1ea42365c8aab7c79d29ddb5e1541c2 (patch) | |
| tree | 4c0e8570d3ab21a982469a13b5b9f710221dee04 /src/common.rs | |
| parent | d4594457993600987b4370ab5b258d4276e12b37 (diff) | |
| parent | 06bc64df9213e928bf37c565f9c2f6b09391a384 (diff) | |
| download | rust-4563abd4f1ea42365c8aab7c79d29ddb5e1541c2.tar.gz rust-4563abd4f1ea42365c8aab7c79d29ddb5e1541c2.zip | |
Sync from rust a240ccd81c74c105b6f5fe84c46f8d36edb7e306
Diffstat (limited to 'src/common.rs')
| -rw-r--r-- | src/common.rs | 4 |
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; |
