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

@ -383,7 +383,7 @@ impl<'a> HIRLinker<'a> {
// ↓
// # module.er
// self = __import__(__name__)
if matches!((path.canonicalize(), self.cfg.input.unescaped_path().canonicalize()), (Ok(l), Ok(r)) if l == r)
if matches!((path.canonicalize(), self.cfg.input.path().canonicalize()), (Ok(l), Ok(r)) if l == r)
{
*expr = Self::self_module();
return;