use smaller span
This commit is contained in:
@@ -1066,9 +1066,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||||||
}
|
}
|
||||||
if eq {
|
if eq {
|
||||||
err.span_suggestion_verbose(
|
err.span_suggestion_verbose(
|
||||||
span,
|
span.shrink_to_hi(),
|
||||||
"you might have meant to compare for equality",
|
"you might have meant to compare for equality",
|
||||||
"==",
|
'=',
|
||||||
applicability,
|
applicability,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user