RS.CLIPPY.INCOMPATIBLE_MSRV
Ensures that all items used in the crate are available for the current MSRV
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: incompatible_msrv. Copyright ©2025 The Rust Team. All rights reserved.
What it does
This lint checks that no function newer than the defined MSRV (minimum supported rust version) is used in the crate.
Why is this bad?
It would prevent the crate to be actually used with the specified MSRV.
Example
// MSRV of 1.3.0
use std::thread::sleep;
use std::time::Duration;
// Sleep was defined in `1.4.0`.
sleep(Duration::new(1, 0));
To fix this problem, either increase your MSRV or use another item available in your current MSRV.
Configuration
-
check-incompatible-msrv-in-tests: Whether to check MSRV compatibility in#[test]and#[cfg(test)]code.(default:
false)