Remove Ty::is_region_ptr
This commit is contained in:
parent
da7c50c089
commit
20dc532085
8 changed files with 12 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue