File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 33// Test that the whole restriction group is not enabled
44#![ warn( clippy:: restriction) ]
55#![ deny( clippy:: restriction) ]
6- #![ forbid( clippy:: restriction) ]
76#![ allow( clippy:: missing_docs_in_private_items, clippy:: panic, clippy:: unreachable) ]
87
98#[ inline( always) ]
Original file line number Diff line number Diff line change 11error: 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
33 |
44LL | #[inline(always)]
55 | ^^^^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::inline-always` implied by `-D warnings`
88
99error: the since field must contain a semver-compliant version
10- --> $DIR/attrs.rs:29 :14
10+ --> $DIR/attrs.rs:28 :14
1111 |
1212LL | #[deprecated(since = "forever")]
1313 | ^^^^^^^^^^^^^^^^^
1414 |
1515 = note: `-D clippy::deprecated-semver` implied by `-D warnings`
1616
1717error: the since field must contain a semver-compliant version
18- --> $DIR/attrs.rs:32 :14
18+ --> $DIR/attrs.rs:31 :14
1919 |
2020LL | #[deprecated(since = "1")]
2121 | ^^^^^^^^^^^
@@ -37,13 +37,5 @@ LL | #![deny(clippy::restriction)]
3737 |
3838 = help: try enabling only the lints you really need
3939
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
4941
You can’t perform that action at this time.
0 commit comments