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

@@ -51,7 +51,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
let output = Arc::new(Mutex::new(Vec::new()));
let code_map = Lrc::new(SourceMap::new(FilePathMapping::empty()));
code_map.new_filemap(Path::new("test.rs").to_owned().into(), file_text.to_owned());
code_map.new_source_file(Path::new("test.rs").to_owned().into(), file_text.to_owned());
let primary_span = make_span(&file_text, &span_labels[0].start, &span_labels[0].end);
let mut msp = MultiSpan::from_span(primary_span);