use smaller span
This commit is contained in:
parent
65445a571c
commit
760279f3cc
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue