8000
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 e8ac439 commit 3d4d913Copy full SHA for 3d4d913
src/renderer/source_map.rs
@@ -124,7 +124,7 @@ impl<'a> SourceMap<'a> {
124
if start >= line_info.end_byte {
125
continue;
126
}
127
- if end <= line_info.start_byte {
+ if end < line_info.start_byte {
128
break;
129
130
lines.push(line_info);
tests/rustc_tests.rs
@@ -2966,7 +2966,6 @@ LL | /// This is a long line that contains a <http://link.com>
2966
2967
2968
#[test]
2969
-#[should_panic = "attempt to subtract with overflow"]
2970
fn array_into_iter() {
2971
let source1 = r#"#![allow(unused)]
2972
fn main() {
0 commit comments