2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:lint-plugin-test.rs
|
2014-06-18 15:46:48 -05:00
|
|
|
// ignore-stage1
|
|
|
|
// compile-flags: -F test-lint
|
|
|
|
|
2014-12-31 22:43:46 -06:00
|
|
|
#![feature(plugin)]
|
2015-02-06 15:56:38 -06:00
|
|
|
#![plugin(lint_plugin_test)]
|
2019-10-03 02:33:28 -05:00
|
|
|
//~^ WARN use of deprecated attribute `plugin`
|
2014-06-18 15:46:48 -05:00
|
|
|
fn lintme() { } //~ ERROR item is named 'lintme'
|
|
|
|
|
2020-11-07 17:14:38 -06:00
|
|
|
#[allow(test_lint)] //~ ERROR allow(test_lint) incompatible
|
|
|
|
//~| ERROR allow(test_lint) incompatible
|
2022-11-30 20:22:08 -06:00
|
|
|
|
2014-06-18 15:46:48 -05:00
|
|
|
pub fn main() {
|
|
|
|
lintme();
|
|
|
|
}
|