File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 11use either:: Either ;
22use rustc_apfloat:: { Float , Round } ;
3+ use rustc_middle:: ty:: FloatTy ;
34use rustc_middle:: ty:: layout:: LayoutOf ;
4- use rustc_middle:: { mir, ty, ty :: FloatTy } ;
5+ use rustc_middle:: { mir, ty} ;
56use rustc_span:: { Symbol , sym} ;
67use rustc_target:: abi:: { Endian , HasDataLayout } ;
78
@@ -630,12 +631,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
630631 let ( right, right_len) = this. project_to_simd ( right) ?;
631632 let ( dest, dest_len) = this. project_to_simd ( dest) ?;
632633
633- let index = generic_args[ 2 ]
634- . expect_const ( )
635- . try_to_valtree ( )
636- . unwrap ( )
637- . 0
638- . unwrap_branch ( ) ;
634+ let index =
635+ generic_args[ 2 ] . expect_const ( ) . try_to_valtree ( ) . unwrap ( ) . 0 . unwrap_branch ( ) ;
639636 let index_len = index. len ( ) ;
640637
641638 assert_eq ! ( left_len, right_len) ;
Original file line number Diff line number Diff line change 1-
21// Ensure that a `ptr::without_provenance` ptr is truly invalid.
32fn main ( ) {
43 let x = 42 ;
You can’t perform that action at this time.
0 commit comments