@@ -27,8 +27,8 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
2727 // (as opposed to through a place), we have to remember to erase any tag
2828 // that might still hang around!
2929
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 ( ) {
3232 "arith_offset" => {
3333 let offset = this. read_scalar ( args[ 1 ] ) ?. to_isize ( this) ?;
3434 let ptr = this. read_scalar ( args[ 0 ] ) ?. not_undef ( ) ?;
@@ -187,7 +187,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
187187 "sinf32" | "fabsf32" | "cosf32" | "sqrtf32" | "expf32" | "exp2f32" | "logf32" |
188188 "log10f32" | "log2f32" | "floorf32" | "ceilf32" | "truncf32" => {
189189 let f = this. read_scalar ( args[ 0 ] ) ?. to_f32 ( ) ?;
190- let f = match intrinsic_name {
190+ let f = match intrinsic_name. get ( ) {
191191 "sinf32" => f. sin ( ) ,
192192 "fabsf32" => f. abs ( ) ,
193193 "cosf32" => f. cos ( ) ,
@@ -208,7 +208,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
208208 "sinf64" | "fabsf64" | "cosf64" | "sqrtf64" | "expf64" | "exp2f64" | "logf64" |
209209 "log10f64" | "log2f64" | "floorf64" | "ceilf64" | "truncf64" => {
210210 let f = this. read_scalar ( args[ 0 ] ) ?. to_f64 ( ) ?;
211- let f = match intrinsic_name {
211+ let f = match intrinsic_name. get ( ) {
212212 "sinf64" => f. sin ( ) ,
213213 "fabsf64" => f. abs ( ) ,
214214 "cosf64" => f. cos ( ) ,
@@ -229,7 +229,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
229229 "fadd_fast" | "fsub_fast" | "fmul_fast" | "fdiv_fast" | "frem_fast" => {
230230 let a = this. read_immediate ( args[ 0 ] ) ?;
231231 let b = this. read_immediate ( args[ 1 ] ) ?;
232- let op = match intrinsic_name {
232+ let op = match intrinsic_name. get ( ) {
233233 "fadd_fast" => mir:: BinOp :: Add ,
234234 "fsub_fast" => mir:: BinOp :: Sub ,
235235 "fmul_fast" => mir:: BinOp :: Mul ,
0 commit comments