Rename cold_path
to outline
This commit is contained in:
parent
91958e0a74
commit
2c507cae36
6 changed files with 13 additions and 15 deletions
|
@ -33,7 +33,7 @@ extern crate rustc_macros;
|
|||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
||||
use rustc_data_structures::{cold_path, AtomicRef};
|
||||
use rustc_data_structures::{outline, AtomicRef};
|
||||
use rustc_macros::HashStable_Generic;
|
||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||
|
||||
|
@ -1592,7 +1592,7 @@ impl SourceFile {
|
|||
return &lines[..];
|
||||
}
|
||||
|
||||
cold_path(|| {
|
||||
outline(|| {
|
||||
self.convert_diffs_to_lines_frozen();
|
||||
if let Some(SourceFileLines::Lines(lines)) = self.lines.get() {
|
||||
return &lines[..];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue