diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-22 22:44:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 22:44:42 +0100 |
commit | 2ee07a19b777149b6723011b361a6324c593438b (patch) | |
tree | 8293dfaca7702570c030d14984e5d9532bfd942c /compiler/rustc_ty_utils | |
parent | 29d04ff501a9d48c2989144f5cb69ada6092bd45 (diff) | |
parent | 20dc53208557db5672a1bcf97b3e582a95913f2c (diff) | |
download | rust-2ee07a19b777149b6723011b361a6324c593438b.tar.gz |
Rollup merge of #109378 - MU001999:master, r=scottmcm
Remove Ty::is_region_ptr
Fixes #109372
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r-- | compiler/rustc_ty_utils/src/abi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/abi.rs b/compiler/rustc_ty_utils/src/abi.rs index 35c9f95eb03..ee5a7909ba3 100644 --- a/compiler/rustc_ty_utils/src/abi.rs +++ b/compiler/rustc_ty_utils/src/abi.rs @@ -539,7 +539,7 @@ fn make_thin_self_ptr<'tcx>( // get a built-in pointer type let mut fat_pointer_layout = layout; 'descend_newtypes: while !fat_pointer_layout.ty.is_unsafe_ptr() - && !fat_pointer_layout.ty.is_region_ptr() + && !fat_pointer_layout.ty.is_ref() { for i in 0..fat_pointer_layout.fields.count() { let field_layout = fat_pointer_layout.field(cx, i); |