-
Notifications
You must be signed in to change notification settings - Fork 925
Same name files was overwrite #3421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
btw, rustfmt version: rustfmt 1.0.3-nightly (d6829d6 2019-02-14) |
@hemaolong Thanks you for reporting this issue. Unfortunately I could not reproduce this locally with the following layout. I think that the actual content of the files could matter. Is it possible for you to publish the exact minimal project so that I could investigate this issue further?
|
@topecongiro Sorry to response too late. |
@hemaolong Thanks! I could reproduce it with your example. cc #3427. |
This issue is resolved by #3448 |
@rchaser53 Thanks! |
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
The text was updated successfully, but these errors were encountered: