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
689689 mir:: ConstantKind :: Val ( ConstValue :: ByRef { alloc, offset : _ } , _) => match result. ty ( ) . kind ( ) {
690690 ty:: Adt ( adt_def, _) if adt_def. is_struct ( ) => Some ( Constant :: Adt ( result) ) ,
691691 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 ) {
693693 Some ( len) => alloc
694694 . inner ( )
695695 . 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
700700 . map ( Constant :: Vec ) ,
701701 _ => None ,
702702 } ,
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 ) {
704704 Some ( len) => alloc
705705 . inner ( )
706706 . 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