]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/error_reporting/mod.rs
is_ty_infer -> is_ty_or_numeric_infer
[rust.git] / compiler / rustc_infer / src / infer / error_reporting / mod.rs
index 080ae6b94669fdf2af1c76dc6fc1431209ae939e..533a3c768eb1693144f6673fcb5175bb2ab68b95 100644 (file)
@@ -1782,9 +1782,9 @@ enum Similar<'tcx> {
                             // like when you have two references but one is `usize` and the other
                             // is `f32`. In those cases we still want to show the `note`. If the
                             // value from `ef` is `Infer(_)`, then we ignore it.
-                            if !ef.expected.is_ty_infer() {
+                            if !ef.expected.is_ty_or_numeric_infer() {
                                 ef.expected != values.expected
-                            } else if !ef.found.is_ty_infer() {
+                            } else if !ef.found.is_ty_or_numeric_infer() {
                                 ef.found != values.found
                             } else {
                                 false