-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Reintroduce directory modules #4116
Comments
I believe we agreed in a meeting to stick with the |
Not critical for 0.6; removing milestone |
Additional mailing list discussion https://mail.mozilla.org/pipermail/rust-dev/2013-February/003204.html |
I would like to nominate this for a milestone. It is important for usability. Let's also remove all the redundant uses of |
When loading a module the parser will look for either foo.rs or foo/mod.rs and generate an error when both are found.
Done |
As part of #2176 I removed directory modules from the language. As a result, crates make heavy use of
#[path]
to create directory structure.We probably do want to have some directory convention that rustc understands.
Here's one idea: the
mod foo;
statement continues to be the only way to load external modules. The parser looks forfoo.rs
andfoo/mod.rs
. If either exists then it loads it, otherwise error.This assumes that we like the
mod.rs
convention. I haven't decided yet.The text was updated successfully, but these errors were encountered: