Skip to content

Commit fa41baf

Browse files
authored
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 fa41baf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Cargo will provide clearer diagnostics about the insufficient toolchain version
2424
This affects all [Cargo targets](cargo-targets.md) in the package, including binaries, examples, test suites,
2525
benchmarks, etc.
2626

27+
Cargo will not build your package on an unsupported toolchain, unless the `--ignore-rust-version` option
28+
below is specified.
29+
2730
**Development aid:**
2831

2932
`cargo add` will auto-select the dependency's version requirement to be the latest version compatible with your `rust-version`.

0 commit comments

Comments
 (0)