Skip to content

Same name files was overwrite #3421

Closed
Closed
@hemaolong

Description

@hemaolong

The files with same name in different path may be overwrite .

This is the mini project to reproduce the bug.
In thiscase, src/system/pay.rs will be messed.
/////////////// main.rs
// Be careful the sequence of mod definition in the main.rs
mod system {
pub mod pay;
}
mod hf;

pub fn main() {}
//////////////end if main.rs

//////////////////// project layout
E:.
│ hf.rs
│ main.rs

├───hf
│ └───system
│ pay.rs

└───system
pay.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.p-high

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions