-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Reintroduce directory modules #4116
Copy link
Copy link
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.rsandfoo/mod.rs. If either exists then it loads it, otherwise error.This assumes that we like the
mod.rsconvention. I haven't decided yet.