1
Fork 0

Remove Ty::is_region_ptr

This commit is contained in:
Mu42 2023-03-20 15:32:21 +08:00
parent da7c50c089
commit 20dc532085
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);