@@ -243,7 +243,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
243243 // First: functions that diverge.
244244 let ret = match ret {
245245 None =>
246- match & * link_name. as_str ( ) {
246+ match link_name. as_str ( ) {
247247 "miri_start_panic" => {
248248 // `check_shim` happens inside `handle_miri_start_panic`.
249249 this. handle_miri_start_panic ( abi, link_name, args, unwind) ?;
@@ -259,7 +259,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
259259 let panic_impl_id = tcx. lang_items ( ) . panic_impl ( ) . unwrap ( ) ;
260260 let panic_impl_instance = ty:: Instance :: mono ( tcx, panic_impl_id) ;
261261 return Ok ( Some ( (
262- & * this. load_mir ( panic_impl_instance. def , None ) ?,
262+ this. load_mir ( panic_impl_instance. def , None ) ?,
263263 panic_impl_instance,
264264 ) ) ) ;
265265 }
@@ -361,7 +361,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
361361
362362 // Here we dispatch all the shims for foreign functions. If you have a platform specific
363363 // shim, add it to the corresponding submodule.
364- match & * link_name. as_str ( ) {
364+ match link_name. as_str ( ) {
365365 // Miri-specific extern functions
366366 "miri_static_root" => {
367367 let [ ptr] = this. check_shim ( abi, Abi :: Rust , link_name, args) ?;
@@ -573,7 +573,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
573573 let [ f] = this. check_shim ( abi, Abi :: C { unwind : false } , link_name, args) ?;
574574 // FIXME: Using host floats.
575575 let f = f32:: from_bits ( this. read_scalar ( f) ?. to_u32 ( ) ?) ;
576- let f = match & * link_name. as_str ( ) {
576+ let f = match link_name. as_str ( ) {
577577 "cbrtf" => f. cbrt ( ) ,
578578 "coshf" => f. cosh ( ) ,
579579 "sinhf" => f. sinh ( ) ,
@@ -596,7 +596,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
596596 // FIXME: Using host floats.
597597 let f1 = f32:: from_bits ( this. read_scalar ( f1) ?. to_u32 ( ) ?) ;
598598 let f2 = f32:: from_bits ( this. read_scalar ( f2) ?. to_u32 ( ) ?) ;
599- let n = match & * link_name. as_str ( ) {
599+ let n = match link_name. as_str ( ) {
600600 "_hypotf" | "hypotf" => f1. hypot ( f2) ,
601601 "atan2f" => f1. atan2 ( f2) ,
602602 _ => bug ! ( ) ,
@@ -615,7 +615,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
615615 let [ f] = this. check_shim ( abi, Abi :: C { unwind : false } , link_name, args) ?;
616616 // FIXME: Using host floats.
617617 let f = f64:: from_bits ( this. read_scalar ( f) ?. to_u64 ( ) ?) ;
618- let f = match & * link_name. as_str ( ) {
618+ let f = match link_name. as_str ( ) {
619619 "cbrt" => f. cbrt ( ) ,
620620 "cosh" => f. cosh ( ) ,
621621 "sinh" => f. sinh ( ) ,
@@ -636,7 +636,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
636636 // FIXME: Using host floats.
637637 let f1 = f64:: from_bits ( this. read_scalar ( f1) ?. to_u64 ( ) ?) ;
638638 let f2 = f64:: from_bits ( this. read_scalar ( f2) ?. to_u64 ( ) ?) ;
639- let n = match & * link_name. as_str ( ) {
639+ let n = match link_name. as_str ( ) {
640640 "_hypot" | "hypot" => f1. hypot ( f2) ,
641641 "atan2" => f1. atan2 ( f2) ,
642642 _ => bug ! ( ) ,
0 commit comments