We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 543b472 commit bff18bdCopy full SHA for bff18bd
compiler/rustc_mir_transform/src/coverage/mod.rs
@@ -277,7 +277,7 @@ fn make_code_region(
277
if span.hi() == span.lo() {
278
// Extend an empty span by one character so the region will be counted.
279
if span.hi() == body_span.hi() {
280
- start_col = start_col.saturating_sub(1);
+ start_col = start_col.saturating_sub(1).max(1);
281
} else {
282
end_col = start_col + 1;
283
}
0 commit comments