@@ -17,10 +17,8 @@ const USE_WORDS: u8 = 1;
17
17
/// signed integers and unsigned integers.
18
18
const USE_SIGNED : u8 = 2 ;
19
19
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 > {
24
22
fn emulate_x86_sse42_intrinsic (
25
23
& mut self ,
26
24
link_name : Symbol ,
@@ -255,8 +253,8 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
255
253
/// A result mask. The bit at index `i` inside the mask is set if 'str2' starting at `i`
256
254
/// fulfills the test as defined inside the immediate byte.
257
255
/// 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 > ,
260
258
str1 : & OpTy < ' tcx > ,
261
259
str2 : & OpTy < ' tcx > ,
262
260
len : Option < ( u64 , u64 ) > ,
@@ -379,14 +377,14 @@ fn compare_strings<'mir, 'tcx: 'mir>(
379
377
/// * The immediate instruction byte.
380
378
/// The string arguments will be transmuted into arrays of bytes
381
379
/// or words, depending on the value of the immediate byte.
382
- fn deconstruct_args < ' mir , ' tcx : ' mir > (
380
+ fn deconstruct_args < ' tcx > (
383
381
unprefixed_name : & str ,
384
- this : & mut InterpCx < ' mir , ' tcx , MiriMachine < ' mir , ' tcx > > ,
382
+ this : & mut MiriInterpCx < ' tcx > ,
385
383
link_name : Symbol ,
386
384
abi : Abi ,
387
385
args : & [ OpTy < ' tcx > ] ,
388
386
) -> 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 | {
390
388
if imm & USE_WORDS != 0 {
391
389
this. layout_of ( Ty :: new_array ( this. tcx . tcx , this. tcx . types . u16 , 8 ) )
392
390
} else {
@@ -429,8 +427,8 @@ fn deconstruct_args<'mir, 'tcx: 'mir>(
429
427
}
430
428
431
429
/// 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 > ,
434
432
str : & OpTy < ' tcx > ,
435
433
imm : u8 ,
436
434
) -> InterpResult < ' tcx , Option < u64 > > {
0 commit comments