File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 3
3
// Test that the whole restriction group is not enabled
4
4
#![ warn( clippy:: restriction) ]
5
5
#![ deny( clippy:: restriction) ]
6
- #![ forbid( clippy:: restriction) ]
7
6
#![ allow( clippy:: missing_docs_in_private_items, clippy:: panic, clippy:: unreachable) ]
8
7
9
8
#[ inline( always) ]
Original file line number Diff line number Diff line change 1
1
error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea
2
- --> $DIR/attrs.rs:9 :1
2
+ --> $DIR/attrs.rs:8 :1
3
3
|
4
4
LL | #[inline(always)]
5
5
| ^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::inline-always` implied by `-D warnings`
8
8
9
9
error: the since field must contain a semver-compliant version
10
- --> $DIR/attrs.rs:29 :14
10
+ --> $DIR/attrs.rs:28 :14
11
11
|
12
12
LL | #[deprecated(since = "forever")]
13
13
| ^^^^^^^^^^^^^^^^^
14
14
|
15
15
= note: `-D clippy::deprecated-semver` implied by `-D warnings`
16
16
17
17
error: the since field must contain a semver-compliant version
18
- --> $DIR/attrs.rs:32 :14
18
+ --> $DIR/attrs.rs:31 :14
19
19
|
20
20
LL | #[deprecated(since = "1")]
21
21
| ^^^^^^^^^^^
@@ -37,13 +37,5 @@ LL | #![deny(clippy::restriction)]
37
37
|
38
38
= help: try enabling only the lints you really need
39
39
40
- error: restriction lints are not meant to be all enabled
41
- --> $DIR/attrs.rs:6:11
42
- |
43
- LL | #![forbid(clippy::restriction)]
44
- | ^^^^^^^^^^^^^^^^^^^
45
- |
46
- = help: try enabling only the lints you really need
47
-
48
- error: aborting due to 6 previous errors
40
+ error: aborting due to 5 previous errors
49
41
You can’t perform that action at this time.
0 commit comments