Skip to content

Commit 0221923

Browse files
committed
Make x.py check work
1 parent 16ed191 commit 0221923

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/base.rs

+4
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,10 @@ fn codegen_stmt<'tcx>(
701701
let operand = codegen_operand(fx, operand);
702702
operand.unsize_value(fx, lval);
703703
}
704+
Rvalue::Cast(CastKind::DynStar, _, _) => {
705+
// FIXME(dyn-star)
706+
unimplemented!()
707+
}
704708
Rvalue::Discriminant(place) => {
705709
let place = codegen_place(fx, place);
706710
let value = place.to_cvalue(fx);

src/value_and_place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ pub(crate) fn assert_assignable<'tcx>(
815815
);
816816
// fn(&T) -> for<'l> fn(&'l T) is allowed
817817
}
818-
(&ty::Dynamic(from_traits, _), &ty::Dynamic(to_traits, _)) => {
818+
(&ty::Dynamic(from_traits, _, _from_kind), &ty::Dynamic(to_traits, _, _to_kind)) => {
819819
for (from, to) in from_traits.iter().zip(to_traits) {
820820
let from =
821821
fx.tcx.normalize_erasing_late_bound_regions(ParamEnv::reveal_all(), from);

0 commit comments

Comments
 (0)