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 94b7124 commit f7082dcCopy full SHA for f7082dc
src/librustc/ich/caching_codemap_view.rs
@@ -78,11 +78,9 @@ impl<'cm> CachingCodemapView<'cm> {
78
// If the entry doesn't point to the correct file, fix it up
79
if pos < cache_entry.file.start_pos || pos >= cache_entry.file.end_pos {
80
let file_valid;
81
- let files = self.codemap.files();
82
-
83
- if files.len() > 0 {
+ if self.codemap.files().len() > 0 {
84
let file_index = self.codemap.lookup_filemap_idx(pos);
85
- let file = files[file_index].clone();
+ let file = self.codemap.files()[file_index].clone();
86
87
if pos >= file.start_pos && pos < file.end_pos {
88
cache_entry.file = file;
0 commit comments