Skip to content

Commit 1efad22

Browse files
author
Lukas Markeffsky
committed
unify dyn* coercions with other pointer coercions
1 parent 631ab21 commit 1efad22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/base.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,11 @@ fn codegen_stmt<'tcx>(
770770
let operand = codegen_operand(fx, operand);
771771
crate::unsize::coerce_unsized_into(fx, operand, lval);
772772
}
773-
Rvalue::Cast(CastKind::DynStar, ref operand, _) => {
773+
Rvalue::Cast(
774+
CastKind::PointerCoercion(PointerCoercion::DynStar),
775+
ref operand,
776+
_,
777+
) => {
774778
let operand = codegen_operand(fx, operand);
775779
crate::unsize::coerce_dyn_star(fx, operand, lval);
776780
}

0 commit comments

Comments
 (0)