only suggest removing semicolon when expr implements trait
This commit is contained in:
parent
027a232755
commit
dfe13dbbcf
15 changed files with 97 additions and 32 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue