diff options
| author | Mu42 <mu001999@outlook.com> | 2023-03-20 15:32:21 +0800 |
|---|---|---|
| committer | Mu42 <mu001999@outlook.com> | 2023-03-20 15:32:21 +0800 |
| commit | 60aafee963b04343c3aa80f069aeafd08013124f (patch) | |
| tree | 0e1c3d366b26cfb58d68f20e26e50e00714dcb74 /src/vtable.rs | |
| parent | edb0717e7ca51dbde53f1dc26956efb0d90825c0 (diff) | |
Remove Ty::is_region_ptr
Diffstat (limited to 'src/vtable.rs')
| -rw-r--r-- | src/vtable.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vtable.rs b/src/vtable.rs index b7bfd8fd395..94806e0d798 100644 --- a/src/vtable.rs +++ b/src/vtable.rs @@ -48,9 +48,7 @@ pub(crate) fn get_ptr_and_method_ref<'tcx>( ) -> (Pointer, Value) { let (ptr, vtable) = 'block: { if let Abi::Scalar(_) = arg.layout().abi { - 'descend_newtypes: while !arg.layout().ty.is_unsafe_ptr() - && !arg.layout().ty.is_region_ptr() - { + 'descend_newtypes: while !arg.layout().ty.is_unsafe_ptr() && !arg.layout().ty.is_ref() { for i in 0..arg.layout().fields.count() { let field = arg.value_field(fx, mir::Field::new(i)); if !field.layout().is_zst() { |
