1
Fork 0

only suggest removing semicolon when expr implements trait

This commit is contained in:
Michael Goulet 2022-04-07 01:21:35 -07:00
parent 027a232755
commit dfe13dbbcf
15 changed files with 97 additions and 32 deletions

View file

@ -936,7 +936,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
} else {
err.span_suggestion_short(
span_semi,
"consider removing this semicolon",
"remove this semicolon",
String::new(),
Applicability::MachineApplicable,
);