@@ -27,8 +27,8 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
27
27
// (as opposed to through a place), we have to remember to erase any tag
28
28
// that might still hang around!
29
29
30
- let intrinsic_name = this. tcx . item_name ( instance. def_id ( ) ) . as_str ( ) . get ( ) ;
31
- match intrinsic_name {
30
+ let intrinsic_name = this. tcx . item_name ( instance. def_id ( ) ) . as_str ( ) ;
31
+ match intrinsic_name. get ( ) {
32
32
"arith_offset" => {
33
33
let offset = this. read_scalar ( args[ 1 ] ) ?. to_isize ( this) ?;
34
34
let ptr = this. read_scalar ( args[ 0 ] ) ?. not_undef ( ) ?;
@@ -187,7 +187,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
187
187
"sinf32" | "fabsf32" | "cosf32" | "sqrtf32" | "expf32" | "exp2f32" | "logf32" |
188
188
"log10f32" | "log2f32" | "floorf32" | "ceilf32" | "truncf32" => {
189
189
let f = this. read_scalar ( args[ 0 ] ) ?. to_f32 ( ) ?;
190
- let f = match intrinsic_name {
190
+ let f = match intrinsic_name. get ( ) {
191
191
"sinf32" => f. sin ( ) ,
192
192
"fabsf32" => f. abs ( ) ,
193
193
"cosf32" => f. cos ( ) ,
@@ -208,7 +208,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
208
208
"sinf64" | "fabsf64" | "cosf64" | "sqrtf64" | "expf64" | "exp2f64" | "logf64" |
209
209
"log10f64" | "log2f64" | "floorf64" | "ceilf64" | "truncf64" => {
210
210
let f = this. read_scalar ( args[ 0 ] ) ?. to_f64 ( ) ?;
211
- let f = match intrinsic_name {
211
+ let f = match intrinsic_name. get ( ) {
212
212
"sinf64" => f. sin ( ) ,
213
213
"fabsf64" => f. abs ( ) ,
214
214
"cosf64" => f. cos ( ) ,
@@ -229,7 +229,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
229
229
"fadd_fast" | "fsub_fast" | "fmul_fast" | "fdiv_fast" | "frem_fast" => {
230
230
let a = this. read_immediate ( args[ 0 ] ) ?;
231
231
let b = this. read_immediate ( args[ 1 ] ) ?;
232
- let op = match intrinsic_name {
232
+ let op = match intrinsic_name. get ( ) {
233
233
"fadd_fast" => mir:: BinOp :: Add ,
234
234
"fsub_fast" => mir:: BinOp :: Sub ,
235
235
"fmul_fast" => mir:: BinOp :: Mul ,
0 commit comments