forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#114318 - matthiaskrgr:rollup-c7gcw18, r=matth…
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#111081 (impl SliceIndex<str> for (Bound<usize>, Bound<usize>)) - rust-lang#113394 (style-guide: Document style editions, start 2024 style edition) - rust-lang#113588 (bootstrap: use git merge-base for LLVM CI download logic) - rust-lang#113743 (Directly link more target docs) - rust-lang#114262 (Improve the rust style guide doc) - rust-lang#114309 (Update books) - rust-lang#114313 ([rustc_data_structures] Simplify SortedMap::insert.) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
20 changed files
with
259 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ pub mod sort; | |
|
||
mod ascii; | ||
mod cmp; | ||
mod index; | ||
pub(crate) mod index; | ||
mod iter; | ||
mod raw; | ||
mod rotate; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule reference
updated
4 files
+3 −1 | .github/workflows/main.yml | |
+19 −6 | src/behavior-considered-undefined.md | |
+4 −2 | src/expressions/operator-expr.md | |
+2 −2 | src/unsafe-keyword.md |
Submodule rust-by-example
updated
3 files
+1 −0 | README.md | |
+3 −0 | src/error/panic.md | |
+2 −2 | src/flow_control/loop/nested.md |
Submodule rustc-dev-guide
updated
21 files
+3 −1 | src/SUMMARY.md | |
+0 −1 | src/about-this-guide.md | |
+59 −0 | src/bound-vars-and-params.md | |
+1 −5 | src/building/how-to-build-and-run.md | |
+0 −3 | src/building/suggested.md | |
+179 −87 | src/early-late-bound.md | |
+1 −1 | src/fuzzing.md | |
+13 −13 | src/generic_arguments.md | |
+3 −21 | src/git.md | |
+1 −1 | src/macro-expansion.md | |
+1 −1 | src/name-resolution.md | |
+1 −1 | src/notification-groups/about.md | |
+1 −1 | src/notification-groups/cleanup-crew.md | |
+1 −1 | src/profiling/with_perf.md | |
+3 −3 | src/salsa.md | |
+2 −2 | src/serialization.md | |
+80 −0 | src/solve/normalization.md | |
+1 −1 | src/tests/compiletest.md | |
+1 −2 | src/tests/headers.md | |
+1 −1 | src/tests/ui.md | |
+1 −1 | src/walkthrough.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Rust style editions | ||
|
||
The default Rust style evolves over time, as Rust does. However, to avoid | ||
breaking established code style, and CI jobs checking code style, changes to | ||
the default Rust style only appear in *style editions*. | ||
|
||
Code written in a given | ||
[Rust edition](https://doc.rust-lang.org/edition-guide/) | ||
uses the corresponding Rust style edition by default. To make it easier to | ||
migrate code style separately from the semantic changes between Rust editions, | ||
formatting tools such as `rustfmt` allow updating the style edition separately | ||
from the Rust edition. | ||
|
||
The current version of the style guide describes the latest Rust style edition. | ||
Each distinct past style will have a corresponding archived version of the | ||
style guide. | ||
|
||
Note that archived versions of the style guide do not document formatting for | ||
newer Rust constructs that did not exist at the time that version of the style | ||
guide was archived. However, each style edition will still format all | ||
constructs valid in that Rust edition, with the style of newer constructs | ||
coming from the first subsequent style edition providing formatting rules for | ||
that construct (without any of the systematic/global changes from that style | ||
edition). | ||
|
||
Not all Rust editions have corresponding changes to the Rust style. For | ||
instance, Rust 2015, Rust 2018, and Rust 2021 all use the same style edition. | ||
|
||
## Rust 2024 style edition | ||
|
||
This style guide describes the Rust 2024 style edition. The Rust 2024 style | ||
edition is currently nightly-only and may change before the release of Rust | ||
2024. | ||
|
||
For a full history of changes in the Rust 2024 style edition, see the git | ||
history of the style guide. Notable changes in the Rust 2024 style edition | ||
include: | ||
|
||
- Miscellaneous `rustfmt` bugfixes. | ||
|
||
## Rust 2015/2018/2021 style edition | ||
|
||
The archived version of the style guide at | ||
<https://github.com/rust-lang/rust/tree/37343f4a4d4ed7ad0891cb79e8eb25acf43fb821/src/doc/style-guide/src> | ||
describes the style edition corresponding to Rust 2015, Rust 2018, and Rust | ||
2021. |
Oops, something went wrong.