diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-29 03:53:33 +0000 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 16:55:59 -0700 |
| commit | b2ed2dcaaedf0a96dece85a5409b3a1f30a84360 (patch) | |
| tree | 09e5929727f25e3cec44443f4f9fdf857cddc0f3 /compiler/rustc_const_eval/src/interpret | |
| parent | 12ec2f0e34e230a5d95d7ef06c6de92efcdcbedf (diff) | |
| download | rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.tar.gz rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.zip | |
Rename some variants
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index 6831e53d014..5301266b824 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -110,7 +110,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { } DynStar => { - if let ty::Dynamic(data, _, ty::TraitObjectRepresentation::Sized) = cast_ty.kind() { + if let ty::Dynamic(data, _, ty::DynStar) = cast_ty.kind() { // Initial cast from sized to dyn trait let vtable = self.get_vtable_ptr(src.layout.ty, data.principal())?; let ptr = self.read_immediate(src)?.to_scalar(); |
