Skip to content

Commit 2271845

Browse files
committed
Small clarification to edition compatibility
The old text ("The Rust compiler can link crates of any editions together") made it sound like old compilers would somehow magically be able to support language features from newer editions. The goal of this new text is to make it more clear that a given compiler release will only be able to work with the specific editions that it supports.
1 parent 2c5cd09 commit 2271845

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/editions/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ This serves different purposes for different people:
2727
When a new edition becomes available in the compiler, crates must explicitly opt
2828
in to it to take full advantage. This opt in enables editions to contain
2929
incompatible changes, like adding a new keyword that might conflict with
30-
identifiers in code, or turning warnings into errors. The Rust compiler can link
31-
crates of any editions together. Edition changes only affect the way the
32-
compiler initially parses the code. Therefore, if you're using Rust 2015, and
30+
identifiers in code, or turning warnings into errors. A Rust compiler will
31+
support all editions that existed prior to the compiler's release, and can link
32+
crates of any supported editions together.
33+
Edition changes only affect the way the compiler initially parses the code.
34+
Therefore, if you're using Rust 2015, and
3335
one of your dependencies uses Rust 2018, it all works just fine. The opposite
3436
situation works as well.
3537

0 commit comments

Comments
 (0)