This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
51ae60ca33
rust
/
tests
/
target
/
configs
/
reorder_modules
/
dolor
/
mod.rs
2 lines
1 B
Raw
Normal View
History
Unescape
Escape
Reorder modules Add `reorder_modules` config option. Two things we must keep in mind when reordering modules: 1. We should not reorder modules with attributes, as doing so could potentially break the code (e.g. `#[macro_use]`). 2. We should not reorder inline modules e.g. `mod foo { /* .. */ }`. We should only reorder module declarations e.g. `mod foo;`. Some open questions: 1. Should we bring modules with `pub` in front of those without `pub` so that they stand out from others? 2. Instead of keeping modules with attributes in the same place, can we bring them in front of others? Is this safe?
2018-01-29 06:59:15 -06:00
Reference in New Issue
Copy Permalink