diff options
| author | Donato Sciarra <sciarp@gmail.com> | 2018-08-18 12:13:56 +0200 |
|---|---|---|
| committer | Donato Sciarra <sciarp@gmail.com> | 2018-08-19 23:00:59 +0200 |
| commit | cbd05957103926fa10d41474fde773167fe64dfb (patch) | |
| tree | 8ff2321dca0305ba524398cf1d415afc51efeeab /src/librustc_errors | |
| parent | d6dcbcd4e11a1b787a9db1fa43a49907e8bccecf (diff) | |
| download | rust-cbd05957103926fa10d41474fde773167fe64dfb.tar.gz rust-cbd05957103926fa10d41474fde773167fe64dfb.zip | |
mv filemap source_file
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 | ||||
| -rw-r--r-- | src/librustc_errors/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index ce3a19677f2..b4034a6a529 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1021,7 +1021,7 @@ impl EmitterWriter { // Print out the annotate source lines that correspond with the error for annotated_file in annotated_files { // we can't annotate anything if the source is unavailable. - if !cm.ensure_filemap_source_present(annotated_file.file.clone()) { + if !cm.ensure_source_file_source_present(annotated_file.file.clone()) { continue; } diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 597b3216490..ae88a365cbe 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -120,7 +120,7 @@ pub trait SourceMapper { fn span_to_filename(&self, sp: Span) -> FileName; fn merge_spans(&self, sp_lhs: Span, sp_rhs: Span) -> Option<Span>; fn call_span_if_macro(&self, sp: Span) -> Span; - fn ensure_filemap_source_present(&self, file_map: Lrc<SourceFile>) -> bool; + fn ensure_source_file_source_present(&self, file_map: Lrc<SourceFile>) -> bool; fn doctest_offset_line(&self, line: usize) -> usize; } |
