fix: eliminate of unnecessary file escapes

This commit is contained in:
Shunsuke Shibayama 2023-07-26 17:53:29 +09:00
parent 3fc42f65e8
commit 3eb2d439ca
16 changed files with 110 additions and 130 deletions

View file

@ -64,7 +64,7 @@ impl ASTBuilder {
CompleteArtifact<AST, ParserRunnerErrors>,
IncompleteArtifact<AST, ParserRunnerErrors>,
> {
let name = Str::rc(self.runner.cfg().input.unescaped_filename());
let name = Str::from(self.runner.cfg().input.filename());
let mut desugarer = Desugarer::new();
let artifact = self.runner.parse(src).map_err(|iart| {
iart.map_mod(|module| {
@ -87,7 +87,7 @@ impl ASTBuilder {
CompleteArtifact<AST, ParserRunnerErrors>,
IncompleteArtifact<AST, ParserRunnerErrors>,
> {
let name = Str::rc(self.runner.cfg().input.unescaped_filename());
let name = Str::from(self.runner.cfg().input.filename());
let artifact = self
.runner
.parse(src)