use smaller span

This commit is contained in:
Takayuki Maeda 2022-10-05 22:46:44 +09:00
parent 65445a571c
commit 760279f3cc

View file

@ -1066,9 +1066,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
}
if eq {
err.span_suggestion_verbose(
span,
span.shrink_to_hi(),
"you might have meant to compare for equality",
"==",
'=',
applicability,
);
}