@@ -1275,7 +1275,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12751275 };
12761276
12771277 match (&expected_ty.kind(), &checked_ty.kind()) {
1278- (& ty::Int(ref exp), & ty::Int(ref found)) => {
1278+ (ty::Int(exp), ty::Int(found)) => {
12791279 let (f2e_is_fallible, e2f_is_fallible) = match (exp.bit_width(), found.bit_width())
12801280 {
12811281 (Some(exp), Some(found)) if exp < found => (true, false),
@@ -1288,7 +1288,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12881288 suggest_to_change_suffix_or_into(err, f2e_is_fallible, e2f_is_fallible);
12891289 true
12901290 }
1291- (& ty::Uint(ref exp), & ty::Uint(ref found)) => {
1291+ (ty::Uint(exp), ty::Uint(found)) => {
12921292 let (f2e_is_fallible, e2f_is_fallible) = match (exp.bit_width(), found.bit_width())
12931293 {
12941294 (Some(exp), Some(found)) if exp < found => (true, false),
@@ -1321,7 +1321,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13211321 suggest_to_change_suffix_or_into(err, f2e_is_fallible, e2f_is_fallible);
13221322 true
13231323 }
1324- (& ty::Float(ref exp), & ty::Float(ref found)) => {
1324+ (ty::Float(exp), ty::Float(found)) => {
13251325 if found.bit_width() < exp.bit_width() {
13261326 suggest_to_change_suffix_or_into(err, false, true);
13271327 } else if literal_is_ty_suffixed(expr) {
@@ -1357,7 +1357,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13571357 }
13581358 true
13591359 }
1360- (& ty::Float(ref exp), & ty::Uint(ref found)) => {
1360+ (ty::Float(exp), ty::Uint(found)) => {
13611361 // if `found` is `None` (meaning found is `usize`), don't suggest `.into()`
13621362 if exp.bit_width() > found.bit_width().unwrap_or(256) {
13631363 err.multipart_suggestion_verbose(
@@ -1386,7 +1386,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13861386 }
13871387 true
13881388 }
1389- (& ty::Float(ref exp), & ty::Int(ref found)) => {
1389+ (ty::Float(exp), ty::Int(found)) => {
13901390 // if `found` is `None` (meaning found is `isize`), don't suggest `.into()`
13911391 if exp.bit_width() > found.bit_width().unwrap_or(256) {
13921392 err.multipart_suggestion_verbose(
0 commit comments