Add warning annotations to ignore-stage1 ui-fulldeps tests

This commit is contained in:
Tomasz Miąsko 2019-11-08 00:00:00 +00:00
parent 3fc30d884a
commit 267fc6dcf6
13 changed files with 17 additions and 44 deletions

View File

@ -13,7 +13,7 @@
rustc_crate_green,
)]
#![plugin(lint_for_crate_rpass)]
#![plugin(lint_for_crate_rpass)] //~ WARNING compiler plugins are deprecated
#![rustc_crate_okay]
#![rustc_crate_blue]
#![rustc_crate_red]

View File

@ -3,7 +3,7 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(issue_40001_plugin)]
#![plugin(issue_40001_plugin)] //~ WARNING compiler plugins are deprecated
#[whitelisted_attr]
fn main() {}

View File

@ -1,11 +1,10 @@
// run-pass
// check-pass
// aux-build:lint-plugin-test.rs
// ignore-stage1
// compile-flags: -A test-lint
#![feature(plugin)]
#![warn(unused)]
#![plugin(lint_plugin_test)]
#![plugin(lint_plugin_test)] //~ WARNING compiler plugins are deprecated
fn lintme() { }

View File

@ -1,21 +1,8 @@
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-plugin-cmdline-allow.rs:8:1
--> $DIR/lint-plugin-cmdline-allow.rs:7:1
|
LL | #![plugin(lint_plugin_test)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
|
= note: `#[warn(deprecated)]` on by default
warning: function is never used: `lintme`
--> $DIR/lint-plugin-cmdline-allow.rs:10:4
|
LL | fn lintme() { }
| ^^^^^^
|
note: lint level defined here
--> $DIR/lint-plugin-cmdline-allow.rs:7:9
|
LL | #![warn(unused)]
| ^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`

View File

@ -1,12 +1,12 @@
// run-pass
// check-pass
// aux-build:lint-tool-test.rs
// ignore-stage1
// compile-flags: -A test-lint
#![feature(plugin)]
#![warn(unused)]
#![plugin(lint_tool_test)]
#![plugin(lint_tool_test)] //~ WARNING compiler plugins are deprecated
fn lintme() {}
//~^ WARNING item is named 'lintme' [clippy::test_lint]
pub fn main() {}

View File

@ -3,7 +3,7 @@ warning: lint name `test_lint` is deprecated and does not have an effect anymore
= note: requested on the command line with `-A test_lint`
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-tool-cmdline-allow.rs:8:1
--> $DIR/lint-tool-cmdline-allow.rs:7:1
|
LL | #![plugin(lint_tool_test)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
@ -11,23 +11,10 @@ LL | #![plugin(lint_tool_test)]
= note: `#[warn(deprecated)]` on by default
warning: item is named 'lintme'
--> $DIR/lint-tool-cmdline-allow.rs:10:1
--> $DIR/lint-tool-cmdline-allow.rs:9:1
|
LL | fn lintme() {}
| ^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::test_lint)]` on by default
warning: function is never used: `lintme`
--> $DIR/lint-tool-cmdline-allow.rs:10:4
|
LL | fn lintme() {}
| ^^^^^^
|
note: lint level defined here
--> $DIR/lint-tool-cmdline-allow.rs:7:9
|
LL | #![warn(unused)]
| ^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`

View File

@ -3,6 +3,6 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(llvm_pass_plugin)]
#![plugin(llvm_pass_plugin)] //~ WARNING compiler plugins are deprecated
pub fn main() { }

View File

@ -6,7 +6,7 @@
// no-prefer-dynamic
#![feature(plugin)]
#![plugin(lto_syntax_extension_plugin)]
#![plugin(lto_syntax_extension_plugin)] //~ WARNING compiler plugins are deprecated
extern crate lto_syntax_extension_lib;

View File

@ -3,6 +3,6 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(outlive_expansion_phase)]
#![plugin(outlive_expansion_phase)] //~ WARNING compiler plugins are deprecated
pub fn main() {}

View File

@ -3,7 +3,7 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(plugin_args)]
#![plugin(plugin_args)] //~ WARNING compiler plugins are deprecated
fn main() {
assert_eq!(plugin_args!(), "");

View File

@ -3,7 +3,7 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(plugin_args())]
#![plugin(plugin_args())] //~ WARNING compiler plugins are deprecated
fn main() {
assert_eq!(plugin_args!(), "");

View File

@ -3,7 +3,7 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(plugin_args(hello(there), how(are="you")))]
#![plugin(plugin_args(hello(there), how(are="you")))] //~ WARNING compiler plugins are deprecated
fn main() {
assert_eq!(plugin_args!(), "hello(there), how(are = \"you\")");

View File

@ -3,7 +3,7 @@
// ignore-stage1
#![feature(plugin)]
#![plugin(roman_numerals)]
#![plugin(roman_numerals)] //~ WARNING compiler plugins are deprecated
pub fn main() {
assert_eq!(rn!(MMXV), 2015);