File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl IncompatibleMsrv {
99
99
INCOMPATIBLE_MSRV ,
100
100
span,
101
101
& format ! (
102
- "current MSRV is `{}` but this item is stable since `{version}`" ,
102
+ "current MSRV (Minimum Supported Rust Version) is `{}` but this item is stable since `{version}`" ,
103
103
self . msrv
104
104
) ,
105
105
) ;
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ use std::time::Duration;
9
9
10
10
fn foo ( ) {
11
11
let mut map: HashMap < & str , u32 > = HashMap :: new ( ) ;
12
- // Stable since 1.10, so should not warn.
13
12
assert_eq ! ( map. entry( "poneyland" ) . key( ) , & "poneyland" ) ;
13
+ //~^ ERROR: is `1.3.0` but this item is stable since `1.10.0`
14
14
if let Entry :: Vacant ( v) = map. entry ( "poneyland" ) {
15
15
v. into_key ( ) ;
16
- //~^ ERROR: MSRV is `1.3.0` but this item is stable since `1.12.0`
16
+ //~^ ERROR: is `1.3.0` but this item is stable since `1.12.0`
17
17
}
18
18
// Should warn for `sleep` but not for `Duration` (which was added in `1.3.0`).
19
19
sleep ( Duration :: new ( 1 , 0 ) ) ;
20
- //~^ ERROR: MSRV is `1.3.0` but this item is stable since `1.4.0`
20
+ //~^ ERROR: is `1.3.0` but this item is stable since `1.4.0`
21
21
}
22
22
23
23
fn main ( ) { }
Original file line number Diff line number Diff line change 1
- error: current MSRV is `1.3.0` but this item is stable since `1.10.0`
2
- --> $DIR/incompatible_msrv.rs:13 :39
1
+ error: current MSRV (Minimum Supported Rust Version) is `1.3.0` but this item is stable since `1.10.0`
2
+ --> $DIR/incompatible_msrv.rs:12 :39
3
3
|
4
4
LL | assert_eq!(map.entry("poneyland").key(), &"poneyland");
5
5
| ^^^^^
6
6
|
7
7
= note: `-D clippy::incompatible-msrv` implied by `-D warnings`
8
8
= help: to override `-D warnings` add `#[allow(clippy::incompatible_msrv)]`
9
9
10
- error: current MSRV is `1.3.0` but this item is stable since `1.12.0`
10
+ error: current MSRV (Minimum Supported Rust Version) is `1.3.0` but this item is stable since `1.12.0`
11
11
--> $DIR/incompatible_msrv.rs:15:11
12
12
|
13
13
LL | v.into_key();
14
14
| ^^^^^^^^^^
15
15
16
- error: current MSRV is `1.3.0` but this item is stable since `1.4.0`
16
+ error: current MSRV (Minimum Supported Rust Version) is `1.3.0` but this item is stable since `1.4.0`
17
17
--> $DIR/incompatible_msrv.rs:19:5
18
18
|
19
19
LL | sleep(Duration::new(1, 0));
You can’t perform that action at this time.
0 commit comments