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 #![deny(clippy_group)]
14 //~^ WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
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
18 fn lintme() { } //~ ERROR item is named 'lintme'
20 #[allow(clippy::group)]
23 #[allow(clippy::test_lint)]
26 fn lintmetoo() { } //~ ERROR item is named 'lintmetoo'
30 //~^ WARNING lint name `test_group` is deprecated and may not have an effect in the future
31 //~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
32 //~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
33 #[deny(this_lint_does_not_exist)] //~ WARNING unknown lint: `this_lint_does_not_exist`