mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: eliminate of unnecessary file escapes
This commit is contained in:
parent
3fc42f65e8
commit
3eb2d439ca
16 changed files with 110 additions and 130 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue