We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acda5e9 commit 0006737Copy full SHA for 0006737
compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs
@@ -749,7 +749,7 @@ fn shrink_file(
749
750
let hi_byte = spans.iter().map(|s| s.hi()).max()?;
751
let hi_loc = sm.lookup_char_pos(hi_byte);
752
- let hi = lo_loc.file.line_bounds(hi_loc.line.saturating_sub(1)).end;
+ let hi = hi_loc.file.line_bounds(hi_loc.line.saturating_sub(1)).end;
753
754
let bounding_span = Span::with_root_ctxt(lo, hi);
755
let source = sm.span_to_snippet(bounding_span).unwrap_or_default();
0 commit comments