We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edb0717 commit 60aafeeCopy full SHA for 60aafee
src/vtable.rs
@@ -48,9 +48,7 @@ pub(crate) fn get_ptr_and_method_ref<'tcx>(
48
) -> (Pointer, Value) {
49
let (ptr, vtable) = 'block: {
50
if let Abi::Scalar(_) = arg.layout().abi {
51
- 'descend_newtypes: while !arg.layout().ty.is_unsafe_ptr()
52
- && !arg.layout().ty.is_region_ptr()
53
- {
+ 'descend_newtypes: while !arg.layout().ty.is_unsafe_ptr() && !arg.layout().ty.is_ref() {
54
for i in 0..arg.layout().fields.count() {
55
let field = arg.value_field(fx, mir::Field::new(i));
56
if !field.layout().is_zst() {
0 commit comments