@@ -2909,9 +2909,6 @@ impl<'tcx> ObligationCauseExt<'tcx> for ObligationCause<'tcx> {
2909
2909
CompareImplItemObligation { kind : ty:: AssocKind :: Const , .. } => {
2910
2910
"const is compatible with trait"
2911
2911
}
2912
- ExprAssignable => "expression is assignable" ,
2913
- IfExpression { .. } => "`if` and `else` have incompatible types" ,
2914
- IfExpressionWithNoElse => "`if` missing an `else` returns `()`" ,
2915
2912
MainFunctionType => "`main` function has the correct type" ,
2916
2913
StartFunctionType => "`#[start]` function has the correct type" ,
2917
2914
LangFunctionType ( _) => "lang item function has the correct type" ,
@@ -2932,9 +2929,6 @@ impl IntoDiagnosticArg for ObligationCauseAsDiagArg<'_> {
2932
2929
CompareImplItemObligation { kind : ty:: AssocKind :: Fn , .. } => "method_compat" ,
2933
2930
CompareImplItemObligation { kind : ty:: AssocKind :: Type , .. } => "type_compat" ,
2934
2931
CompareImplItemObligation { kind : ty:: AssocKind :: Const , .. } => "const_compat" ,
2935
- ExprAssignable => "expr_assignable" ,
2936
- IfExpression { .. } => "if_else_different" ,
2937
- IfExpressionWithNoElse => "no_else" ,
2938
2932
MainFunctionType => "fn_main_correct_type" ,
2939
2933
StartFunctionType => "fn_start_correct_type" ,
2940
2934
LangFunctionType ( _) => "fn_lang_correct_type" ,
0 commit comments