1
Fork 0

mv filemap source_file

This commit is contained in:
Donato Sciarra 2018-08-18 12:13:56 +02:00
parent d6dcbcd4e1
commit cbd0595710
25 changed files with 209 additions and 209 deletions

View file

@ -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;
}

View file

@ -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;
}