Skip to content

Commit cae6ebe

Browse files
committed
Remove 'mir lifetime parameter
1 parent eb0c51c commit cae6ebe

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/shims/x86/sse42.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ const USE_WORDS: u8 = 1;
1717
/// signed integers and unsigned integers.
1818
const USE_SIGNED: u8 = 2;
1919

20-
impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriInterpCx<'mir, 'tcx> {}
21-
pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
22-
crate::MiriInterpCxExt<'mir, 'tcx>
23-
{
20+
impl<'tcx> EvalContextExt<'tcx> for crate::MiriInterpCx<'tcx> {}
21+
pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
2422
fn emulate_x86_sse42_intrinsic(
2523
&mut self,
2624
link_name: Symbol,
@@ -255,8 +253,8 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
255253
/// A result mask. The bit at index `i` inside the mask is set if 'str2' starting at `i`
256254
/// fulfills the test as defined inside the immediate byte.
257255
/// The mask may be negated if negation flags inside the immediate byte are set.
258-
fn compare_strings<'mir, 'tcx: 'mir>(
259-
this: &mut InterpCx<'mir, 'tcx, MiriMachine<'mir, 'tcx>>,
256+
fn compare_strings<'tcx>(
257+
this: &mut MiriInterpCx<'tcx>,
260258
str1: &OpTy<'tcx>,
261259
str2: &OpTy<'tcx>,
262260
len: Option<(u64, u64)>,
@@ -379,14 +377,14 @@ fn compare_strings<'mir, 'tcx: 'mir>(
379377
/// * The immediate instruction byte.
380378
/// The string arguments will be transmuted into arrays of bytes
381379
/// or words, depending on the value of the immediate byte.
382-
fn deconstruct_args<'mir, 'tcx: 'mir>(
380+
fn deconstruct_args<'tcx>(
383381
unprefixed_name: &str,
384-
this: &mut InterpCx<'mir, 'tcx, MiriMachine<'mir, 'tcx>>,
382+
this: &mut MiriInterpCx<'tcx>,
385383
link_name: Symbol,
386384
abi: Abi,
387385
args: &[OpTy<'tcx>],
388386
) -> InterpResult<'tcx, (OpTy<'tcx>, OpTy<'tcx>, Option<(u64, u64)>, u8)> {
389-
let array_layout_fn = |this: &mut InterpCx<'mir, 'tcx, MiriMachine<'mir, 'tcx>>, imm: u8| {
387+
let array_layout_fn = |this: &mut MiriInterpCx<'tcx>, imm: u8| {
390388
if imm & USE_WORDS != 0 {
391389
this.layout_of(Ty::new_array(this.tcx.tcx, this.tcx.types.u16, 8))
392390
} else {
@@ -429,8 +427,8 @@ fn deconstruct_args<'mir, 'tcx: 'mir>(
429427
}
430428

431429
/// Calculate the c-style string length for a given string `str`.
432-
fn implicit_len<'mir, 'tcx: 'mir>(
433-
this: &mut InterpCx<'mir, 'tcx, MiriMachine<'mir, 'tcx>>,
430+
fn implicit_len<'tcx>(
431+
this: &mut MiriInterpCx<'tcx>,
434432
str: &OpTy<'tcx>,
435433
imm: u8,
436434
) -> InterpResult<'tcx, Option<u64>> {

0 commit comments

Comments
 (0)