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.
Freeze
SourceFile.lines
1 parent d4f12a5 commit 4ecfd30Copy full SHA for 4ecfd30
src/debuginfo/line_info.rs
@@ -81,7 +81,7 @@ impl DebugContext {
81
82
match tcx.sess.source_map().lookup_line(span.lo()) {
83
Ok(SourceFileAndLine { sf: file, line }) => {
84
- let line_pos = file.lines(|lines| lines[line]);
+ let line_pos = file.lines()[line];
85
let col = file.relative_position(span.lo()) - line_pos;
86
87
(file, u64::try_from(line).unwrap() + 1, u64::from(col.to_u32()) + 1)
0 commit comments