Skip to content

Commit adb2918

Browse files
committed
[WIP] add support for minimum supported rust version
fixes rust-lang#6097
1 parent 85959be commit adb2918

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clippy_lints/src/manual_non_exhaustive.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use rustc_lint::{EarlyContext, EarlyLintPass};
77
use rustc_session::{declare_lint_pass, declare_tool_lint};
88
use rustc_span::Span;
99

10+
const MSRV: &str = "1.40";
11+
1012
declare_clippy_lint! {
1113
/// **What it does:** Checks for manual implementations of the non-exhaustive pattern.
1214
///

clippy_lints/src/manual_strip.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
1717
use rustc_span::source_map::Spanned;
1818
use rustc_span::Span;
1919

20+
const MSRV: &str = "1.45";
21+
2022
declare_clippy_lint! {
2123
/// **What it does:**
2224
/// Suggests using `strip_{prefix,suffix}` over `str::{starts,ends}_with` and slicing using

0 commit comments

Comments
 (0)