X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_span%2Fsrc%2Fcaching_source_map_view.rs;h=886112769a977f78db57a95c9ddabafe985133dc;hb=5b4723f154310478206795741e589186cb222e43;hp=fdabf404a37fb0f0b1d76331c4d91c6d043becc5;hpb=9dcd19bd2e377448b0cc4749dfaf9e064d83a8c3;p=rust.git diff --git a/compiler/rustc_span/src/caching_source_map_view.rs b/compiler/rustc_span/src/caching_source_map_view.rs index fdabf404a37..886112769a9 100644 --- a/compiler/rustc_span/src/caching_source_map_view.rs +++ b/compiler/rustc_span/src/caching_source_map_view.rs @@ -165,7 +165,7 @@ pub fn span_data_to_lines_and_cols( Some(new_file_and_idx) } else { let file = &self.line_cache[oldest].file; - if !file_contains(&file, span_data.hi) { + if !file_contains(file, span_data.hi) { return None; }