File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ pub fn miri_to_const<'tcx>(lcx: &LateContext<'tcx>, result: mir::ConstantKind<'t
689
689
mir:: ConstantKind :: Val ( ConstValue :: ByRef { alloc, offset : _ } , _) => match result. ty ( ) . kind ( ) {
690
690
ty:: Adt ( adt_def, _) if adt_def. is_struct ( ) => Some ( Constant :: Adt ( result) ) ,
691
691
ty:: Array ( sub_type, len) => match sub_type. kind ( ) {
692
- ty:: Float ( FloatTy :: F32 ) => match len. kind ( ) . try_to_target_usize ( lcx. tcx ) {
692
+ ty:: Float ( FloatTy :: F32 ) => match len. try_to_target_usize ( lcx. tcx ) {
693
693
Some ( len) => alloc
694
694
. inner ( )
695
695
. inspect_with_uninit_and_ptr_outside_interpreter ( 0 ..( 4 * usize:: try_from ( len) . unwrap ( ) ) )
@@ -700,7 +700,7 @@ pub fn miri_to_const<'tcx>(lcx: &LateContext<'tcx>, result: mir::ConstantKind<'t
700
700
. map ( Constant :: Vec ) ,
701
701
_ => None ,
702
702
} ,
703
- ty:: Float ( FloatTy :: F64 ) => match len. kind ( ) . try_to_target_usize ( lcx. tcx ) {
703
+ ty:: Float ( FloatTy :: F64 ) => match len. try_to_target_usize ( lcx. tcx ) {
704
704
Some ( len) => alloc
705
705
. inner ( )
706
706
. inspect_with_uninit_and_ptr_outside_interpreter ( 0 ..( 8 * usize:: try_from ( len) . unwrap ( ) ) )
You can’t perform that action at this time.
0 commit comments