Skip to content

Commit 4a513e6

Browse files
committed
docs: make it clearer that rust_version is enforced during compile
The current wording makes it sound like Cargo will only refuse to compile the package if it encounters any missing functionality in stdlib while compiling the package on an unsupported toolchain. However, cargo will actually refuse to build the package unless overridden or the toolchain is updated.
1 parent 611b7c4 commit 4a513e6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/doc/src/reference/rust-version.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ identifiers such as -nightly will be ignored while checking the Rust version.
1919

2020
**Diagnostics:**
2121

22-
When your package is compiled on an unsupported toolchain,
23-
Cargo will provide clearer diagnostics about the insufficient toolchain version rather than reporting invalid syntax or missing functionality in the standard library.
24-
This affects all [Cargo targets](cargo-targets.md) in the package, including binaries, examples, test suites,
25-
benchmarks, etc.
22+
When your package is compiled on an unsupported toolchain, Cargo will provide
23+
clearer diagnostics about the insufficient toolchain version by always erroring
24+
during compilation, rather than reporting invalid syntax or missing functionality
25+
in the standard library. This affects all [Cargo targets](cargo-targets.md) in the
26+
package, including binaries, examples, test suites, benchmarks, etc.
27+
2628

2729
**Development aid:**
2830

0 commit comments

Comments
 (0)