Skip to content
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

Use rust 2018 module file hierarchy #1532

Merged

Conversation

gokhanettin
Copy link
Contributor

@gokhanettin gokhanettin commented Apr 15, 2022

With 2018 edition, we no longer need mod.rs files. The book follows the
new convention in its dedicated chapter and the reference encourages its
usage over the mod.rs files. In order to be consistent with the book, we
now have my.rs and my folder in the same directory instead of
my/mod.rs.

Please see reference, edition guide, and the book.

With 2018 edition we no longer need mod.rs files. The book follows the
new convention in its dedicated chapter and the reference encourages its
usage over the mod.rs files. In order to be consistent with the book, we
now have `my.rs` and `my` folder in the same directory instead of
`my/mod.rs`.
@rust-highfive
Copy link

r? @marioidival

(rust-highfive has picked a reviewer for you, use r? to override)

@marioidival marioidival merged commit 44a80e8 into rust-lang:master Apr 19, 2022
@gokhanettin gokhanettin deleted the update-module-file-hierarchy branch April 20, 2022 15:11
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Apr 21, 2022
Update books

## book

3 commits in 765318b844569a642ceef7bf1adab9639cbf6af3..de0dbffc5812fd885700874e8d258dd334733ac4
2022-04-12 21:14:47 -0400 to 2022-04-18 19:29:45 -0400
- Remove duplicate text
- Add missing punctuation mark in ch16-01
- Update main.rs

## rust-by-example

1 commits in c2a98d9fc5d29c481d42052fbeccfde15ed03116..44a80e8d8bfc5881c9bd69a2cb3a570776ee4181
2022-04-08 06:44:18 -0300 to 2022-04-19 07:46:28 -0300
- Use rust 2018 module file hierarchy (rust-lang/rust-by-example#1532)

## rustc-dev-guide

6 commits in eeb5a83..043e60f
2022-04-11 23:29:48 +0900 to 2022-04-20 18:57:49 +0900
- Fix a small typo (rust-lang/rustc-dev-guide#1343)
- Extend debugging llvm section (rust-lang/rustc-dev-guide#1290)
- Send people doing *library* stabilizations over to the std-dev-guide (rust-lang/rustc-dev-guide#1317)
- Fix typo serious->series (rust-lang/rustc-dev-guide#1336)
- Minor type fix (rust-lang/rustc-dev-guide#1337)
- sessiondiagnostic: translation (rust-lang/rustc-dev-guide#1333)

## embedded-book

3 commits in a6de8b6e3ea5d4f0de8b7b9a7e5c1405dc2c2ddb..f7cefbb995eec8c6148f213235e9e2e03268e775
2022-03-17 21:21:39 +0000 to 2022-04-20 10:38:51 +0000
- Fix use of unaligned references in example  (rust-embedded/book#317)
- Correct C interop declarations  (rust-embedded/book#315)
- Update index.md  (rust-embedded/book#316)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants