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 1
1
use either:: Either ;
2
2
use rustc_apfloat:: { Float , Round } ;
3
+ use rustc_middle:: ty:: FloatTy ;
3
4
use rustc_middle:: ty:: layout:: LayoutOf ;
4
- use rustc_middle:: { mir, ty, ty :: FloatTy } ;
5
+ use rustc_middle:: { mir, ty} ;
5
6
use rustc_span:: { Symbol , sym} ;
6
7
use rustc_target:: abi:: { Endian , HasDataLayout } ;
7
8
@@ -630,12 +631,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
630
631
let ( right, right_len) = this. project_to_simd ( right) ?;
631
632
let ( dest, dest_len) = this. project_to_simd ( dest) ?;
632
633
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 ( ) ;
639
636
let index_len = index. len ( ) ;
640
637
641
638
assert_eq ! ( left_len, right_len) ;
Original file line number Diff line number Diff line change 1
-
2
1
// Ensure that a `ptr::without_provenance` ptr is truly invalid.
3
2
fn main ( ) {
4
3
let x = 42 ;
You can’t perform that action at this time.
0 commit comments