diff options
| author | Eric Holk <ericholk@microsoft.com> | 2022-08-30 12:39:28 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 17:29:11 -0700 |
| commit | 02219239525517322c6e90339db2c8ca234f097f (patch) | |
| tree | d22453756ac43c74296c157f0ca6aca1cf12c348 | |
| parent | 16ed1913622e5c10ce7630a2dc23ab6010a02197 (diff) | |
| download | rust-02219239525517322c6e90339db2c8ca234f097f.tar.gz rust-02219239525517322c6e90339db2c8ca234f097f.zip | |
Make x.py check work
| -rw-r--r-- | src/base.rs | 4 | ||||
| -rw-r--r-- | src/value_and_place.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs index 2aa11ac2eea..399474d79e3 100644 --- a/src/base.rs +++ b/src/base.rs @@ -701,6 +701,10 @@ fn codegen_stmt<'tcx>( let operand = codegen_operand(fx, operand); operand.unsize_value(fx, lval); } + Rvalue::Cast(CastKind::DynStar, _, _) => { + // FIXME(dyn-star) + unimplemented!() + } Rvalue::Discriminant(place) => { let place = codegen_place(fx, place); let value = place.to_cvalue(fx); diff --git a/src/value_and_place.rs b/src/value_and_place.rs index 2ee98546c99..d58b52851ac 100644 --- a/src/value_and_place.rs +++ b/src/value_and_place.rs @@ -815,7 +815,7 @@ pub(crate) fn assert_assignable<'tcx>( ); // fn(&T) -> for<'l> fn(&'l T) is allowed } - (&ty::Dynamic(from_traits, _), &ty::Dynamic(to_traits, _)) => { + (&ty::Dynamic(from_traits, _, _from_kind), &ty::Dynamic(to_traits, _, _to_kind)) => { for (from, to) in from_traits.iter().zip(to_traits) { let from = fx.tcx.normalize_erasing_late_bound_regions(ParamEnv::reveal_all(), from); |
