diff options
| author | Lukas Markeffsky <@> | 2024-09-15 16:47:42 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2024-09-24 22:17:55 +0200 |
| commit | 1efad223399646cef0b5e3fd53da3b248804260f (patch) | |
| tree | c6c3b097c2ed926a2fc7f948c7360b8b88b7bbc0 /src/base.rs | |
| parent | 631ab21ff01472c629c4bb5bb40338b0f04e8838 (diff) | |
unify dyn* coercions with other pointer coercions
Diffstat (limited to 'src/base.rs')
| -rw-r--r-- | src/base.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs index dc342e151f3..876466e79bc 100644 --- a/src/base.rs +++ b/src/base.rs @@ -770,7 +770,11 @@ fn codegen_stmt<'tcx>( let operand = codegen_operand(fx, operand); crate::unsize::coerce_unsized_into(fx, operand, lval); } - Rvalue::Cast(CastKind::DynStar, ref operand, _) => { + Rvalue::Cast( + CastKind::PointerCoercion(PointerCoercion::DynStar), + ref operand, + _, + ) => { let operand = codegen_operand(fx, operand); crate::unsize::coerce_dyn_star(fx, operand, lval); } |
