]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_span/src/caching_source_map_view.rs
Rollup merge of #105389 - ogarokpeter:patch-1, r=Mark-Simulacrum
[rust.git] / compiler / rustc_span / src / caching_source_map_view.rs
index fdabf404a37fb0f0b1d76331c4d91c6d043becc5..886112769a977f78db57a95c9ddabafe985133dc 100644 (file)
@@ -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;
             }