1 // aux-build:lint-tool-test.rs
3 // compile-flags: --cfg foo
6 #![plugin(lint_tool_test)]
7 //~^ WARN use of deprecated attribute `plugin`
9 #![cfg_attr(foo, warn(test_lint))]
10 //~^ WARNING lint name `test_lint` is deprecated and may not have an effect in the future
11 //~| WARNING lint name `test_lint` is deprecated and may not have an effect in the future
12 //~| WARNING lint name `test_lint` is deprecated and may not have an effect in the future
13 //~| WARNING lint name `test_lint` is deprecated and may not have an effect in the future
14 #![deny(clippy_group)]
15 //~^ WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
16 //~| WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
17 //~| WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
18 //~| WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
20 fn lintme() { } //~ ERROR item is named 'lintme'
22 #[allow(clippy::group)]
25 #[allow(clippy::test_lint)]
28 fn lintmetoo() { } //~ ERROR item is named 'lintmetoo'
32 //~^ WARNING lint name `test_group` is deprecated and may not have an effect in the future
33 //~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
34 //~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
35 //~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
36 #[deny(this_lint_does_not_exist)] //~ WARNING unknown lint: `this_lint_does_not_exist`