Rollup merge of #109378 - MU001999:master, r=scottmcm

Remove Ty::is_region_ptr

Fixes #109372
This commit is contained in:
Matthias Krüger
2023-03-22 22:44:42 +01:00
committed by GitHub
8 changed files with 12 additions and 24 deletions

View File

@@ -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);