Skip to content

Commit 760279f

Browse files
committed
use smaller span
1 parent 65445a5 commit 760279f

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+2
-2
lines changed

compiler/rustc_hir_analysis/src/check/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1066,9 +1066,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
10661066
}
10671067
if eq {
10681068
err.span_suggestion_verbose(
1069-
span,
1069+
span.shrink_to_hi(),
10701070
"you might have meant to compare for equality",
1071-
"==",
1071+
'=',
10721072
applicability,
10731073
);
10741074
}

0 commit comments

Comments
 (0)