mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-13 03:03:12 -04:00
fc7fa89eb3
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. Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>