We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3a05a commit 5c29a94Copy full SHA for 5c29a94
src/librustc_errors/emitter.rs
@@ -959,15 +959,15 @@ impl EmitterWriter {
959
'_',
960
line_offset + pos,
961
width_offset + depth,
962
- code_offset + annotation.start_col - left,
+ (code_offset + annotation.start_col).saturating_sub(left),
963
style,
964
);
965
}
966
_ if self.teach => {
967
buffer.set_style_range(
968
line_offset,
969
970
- code_offset + annotation.end_col - left,
+ (code_offset + annotation.end_col).saturating_sub(left),
971
972
annotation.is_primary,
973
0 commit comments