@@ -1275,7 +1275,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1275
1275
} ;
1276
1276
1277
1277
match ( & expected_ty. kind ( ) , & checked_ty. kind ( ) ) {
1278
- ( & ty:: Int ( ref exp) , & ty:: Int ( ref found) ) => {
1278
+ ( ty:: Int ( exp) , ty:: Int ( found) ) => {
1279
1279
let ( f2e_is_fallible, e2f_is_fallible) = match ( exp. bit_width ( ) , found. bit_width ( ) )
1280
1280
{
1281
1281
( Some ( exp) , Some ( found) ) if exp < found => ( true , false ) ,
@@ -1288,7 +1288,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1288
1288
suggest_to_change_suffix_or_into ( err, f2e_is_fallible, e2f_is_fallible) ;
1289
1289
true
1290
1290
}
1291
- ( & ty:: Uint ( ref exp) , & ty:: Uint ( ref found) ) => {
1291
+ ( ty:: Uint ( exp) , ty:: Uint ( found) ) => {
1292
1292
let ( f2e_is_fallible, e2f_is_fallible) = match ( exp. bit_width ( ) , found. bit_width ( ) )
1293
1293
{
1294
1294
( Some ( exp) , Some ( found) ) if exp < found => ( true , false ) ,
@@ -1321,7 +1321,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1321
1321
suggest_to_change_suffix_or_into ( err, f2e_is_fallible, e2f_is_fallible) ;
1322
1322
true
1323
1323
}
1324
- ( & ty:: Float ( ref exp) , & ty:: Float ( ref found) ) => {
1324
+ ( ty:: Float ( exp) , ty:: Float ( found) ) => {
1325
1325
if found. bit_width ( ) < exp. bit_width ( ) {
1326
1326
suggest_to_change_suffix_or_into ( err, false , true ) ;
1327
1327
} else if literal_is_ty_suffixed ( expr) {
@@ -1357,7 +1357,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1357
1357
}
1358
1358
true
1359
1359
}
1360
- ( & ty:: Float ( ref exp) , & ty:: Uint ( ref found) ) => {
1360
+ ( ty:: Float ( exp) , ty:: Uint ( found) ) => {
1361
1361
// if `found` is `None` (meaning found is `usize`), don't suggest `.into()`
1362
1362
if exp. bit_width ( ) > found. bit_width ( ) . unwrap_or ( 256 ) {
1363
1363
err. multipart_suggestion_verbose (
@@ -1386,7 +1386,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1386
1386
}
1387
1387
true
1388
1388
}
1389
- ( & ty:: Float ( ref exp) , & ty:: Int ( ref found) ) => {
1389
+ ( ty:: Float ( exp) , ty:: Int ( found) ) => {
1390
1390
// if `found` is `None` (meaning found is `isize`), don't suggest `.into()`
1391
1391
if exp. bit_width ( ) > found. bit_width ( ) . unwrap_or ( 256 ) {
1392
1392
err. multipart_suggestion_verbose (
0 commit comments