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_ssa/src | |
| parent | da7c50c089d5db2d3ebaf227fe075bb1346bfaec (diff) | |
| download | rust-20dc53208557db5672a1bcf97b3e582a95913f2c.tar.gz rust-20dc53208557db5672a1bcf97b3e582a95913f2c.zip | |
Remove Ty::is_region_ptr
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs index f9aa2aecf65..6bad5c3eb28 100644 --- a/compiler/rustc_codegen_ssa/src/mir/block.rs +++ b/compiler/rustc_codegen_ssa/src/mir/block.rs @@ -917,7 +917,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { // // This is also relevant for `Pin<&mut Self>`, where we need to peel the `Pin`. 'descend_newtypes: while !op.layout.ty.is_unsafe_ptr() - && !op.layout.ty.is_region_ptr() + && !op.layout.ty.is_ref() { for i in 0..op.layout.fields.count() { let field = op.extract_field(bx, i); @@ -959,7 +959,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { Immediate(_) => { // See comment above explaining why we peel these newtypes 'descend_newtypes: while !op.layout.ty.is_unsafe_ptr() - && !op.layout.ty.is_region_ptr() + && !op.layout.ty.is_ref() { for i in 0..op.layout.fields.count() { let field = op.extract_field(bx, i); |
