Commit 4773de1
committed
Auto merge of #157175 - Unique-Usman:ua/syntatic, r=JonathanBrouwer,Kivooeo
Don't suggest semicolon after if expression closing brace
When a type mismatch occurs inside an if expression, the compiler incorrectly suggests adding a semicolon after the closing brace. This doesn't fix the error. The fix excludes all if expressions from the suggest_semicolon_at_end suggestion in coercion.rs.
Fix: rust-lang/rust#1566210 file changed
0 commit comments