From 52b20ab57b0ac6aa9e61cc5dcda0e6686d4fbc03 Mon Sep 17 00:00:00 2001 From: Jamie Hill-Daniel Date: Tue, 16 Jun 2026 12:07:52 +0100 Subject: [PATCH] doc: Document `-Zlint-rust-version` --- .../src/compiler-flags/lint-rust-version.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/doc/unstable-book/src/compiler-flags/lint-rust-version.md diff --git a/src/doc/unstable-book/src/compiler-flags/lint-rust-version.md b/src/doc/unstable-book/src/compiler-flags/lint-rust-version.md new file mode 100644 index 0000000000000..ecc0e7fba6350 --- /dev/null +++ b/src/doc/unstable-book/src/compiler-flags/lint-rust-version.md @@ -0,0 +1,9 @@ +# `lint-rust-version` + +The tracking issue for this feature is: [#157574](https://github.com/rust-lang/rust/issues/157574). + +------------------------ + +This feature allows you to specify a minimum Rust version for the crate, which will affect lint +emission. If following a lint suggestion would raise the MSRV above the provided value, it should +not be emitted.