X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Frustc_hir_analysis%2Fsrc%2Fcheck%2F_match.rs;h=143508b785f1e55891fbea3ce5be6698c2012c37;hb=91c7d02e69c3704ca283699fd4eeb9b09508e078;hp=201927091a60a489e0d11aee3554aa9d0ec459f8;hpb=c2590e6e892cce1105cc57b480aa07a51ae95fe5;p=rust.git diff --git a/compiler/rustc_hir_analysis/src/check/_match.rs b/compiler/rustc_hir_analysis/src/check/_match.rs index 201927091a6..143508b785f 100644 --- a/compiler/rustc_hir_analysis/src/check/_match.rs +++ b/compiler/rustc_hir_analysis/src/check/_match.rs @@ -259,7 +259,7 @@ pub(super) fn if_fallback_coercion( err.help("consider adding an `else` block that evaluates to the expected type"); error = true; }, - ret_reason.is_none(), + false, ); error }