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 | 20dc53208557db5672a1bcf97b3e582a95913f2c (patch) | |
| tree | 7bd3b3db32e819f1254143c44aae7c232f642d9b /compiler/rustc_codegen_cranelift/src/vtable.rs | |
| parent | da7c50c089d5db2d3ebaf227fe075bb1346bfaec (diff) | |
| download | rust-20dc53208557db5672a1bcf97b3e582a95913f2c.tar.gz rust-20dc53208557db5672a1bcf97b3e582a95913f2c.zip | |
Remove Ty::is_region_ptr
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/vtable.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/vtable.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/vtable.rs b/compiler/rustc_codegen_cranelift/src/vtable.rs index b7bfd8fd395..94806e0d798 100644 --- a/compiler/rustc_codegen_cranelift/src/vtable.rs +++ b/compiler/rustc_codegen_cranelift/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() { |
