1
Fork 0

Remove file_path_mapping param from ParseSess::new.

It's always empty.
This commit is contained in:
Nicholas Nethercote 2024-03-04 16:18:17 +11:00
parent aa38c26bbf
commit 3996447b37
6 changed files with 11 additions and 25 deletions

View file

@ -233,9 +233,9 @@ pub struct ParseSess {
impl ParseSess {
/// Used for testing.
pub fn new(locale_resources: Vec<&'static str>, file_path_mapping: FilePathMapping) -> Self {
pub fn new(locale_resources: Vec<&'static str>) -> Self {
let fallback_bundle = fallback_fluent_bundle(locale_resources, false);
let sm = Lrc::new(SourceMap::new(file_path_mapping));
let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
let emitter = Box::new(
HumanEmitter::new(stderr_destination(ColorConfig::Auto), fallback_bundle)
.sm(Some(sm.clone())),