Skip to content

Commit 1d635fe

Browse files
Fix tests
1 parent cbf09bf commit 1d635fe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/intrinsics/simd.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use either::Either;
22
use rustc_apfloat::{Float, Round};
3-
use rustc_middle::ty::FloatTy;
4-
use rustc_middle::ty::layout::{HasParamEnv, LayoutOf};
5-
use rustc_middle::{mir, ty};
3+
use rustc_middle::ty::layout::LayoutOf;
4+
use rustc_middle::{mir, ty, ty::FloatTy};
65
use rustc_span::{Symbol, sym};
76
use rustc_target::abi::{Endian, HasDataLayout};
87

@@ -633,9 +632,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
633632

634633
let index = generic_args[2]
635634
.expect_const()
636-
.eval(*this.tcx, this.param_env(), this.tcx.span)
635+
.try_to_valtree()
637636
.unwrap()
638-
.1
637+
.0
639638
.unwrap_branch();
640639
let index_len = index.len();
641640

0 commit comments

Comments
 (0)