Skip to content

Commit 267fc6d

Browse files
committed
Add warning annotations to ignore-stage1 ui-fulldeps tests
1 parent 3fc30d8 commit 267fc6d

13 files changed

+17
-44
lines changed

src/test/ui-fulldeps/issue-15778-pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
rustc_crate_green,
1414
)]
1515

16-
#![plugin(lint_for_crate_rpass)]
16+
#![plugin(lint_for_crate_rpass)] //~ WARNING compiler plugins are deprecated
1717
#![rustc_crate_okay]
1818
#![rustc_crate_blue]
1919
#![rustc_crate_red]

src/test/ui-fulldeps/issue-40001.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(issue_40001_plugin)]
6+
#![plugin(issue_40001_plugin)] //~ WARNING compiler plugins are deprecated
77

88
#[whitelisted_attr]
99
fn main() {}

src/test/ui-fulldeps/lint-plugin-cmdline-allow.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
// run-pass
1+
// check-pass
22
// aux-build:lint-plugin-test.rs
33
// ignore-stage1
44
// compile-flags: -A test-lint
55

66
#![feature(plugin)]
7-
#![warn(unused)]
8-
#![plugin(lint_plugin_test)]
7+
#![plugin(lint_plugin_test)] //~ WARNING compiler plugins are deprecated
98

109
fn lintme() { }
1110

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
2-
--> $DIR/lint-plugin-cmdline-allow.rs:8:1
2+
--> $DIR/lint-plugin-cmdline-allow.rs:7:1
33
|
44
LL | #![plugin(lint_plugin_test)]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
66
|
77
= note: `#[warn(deprecated)]` on by default
88

9-
warning: function is never used: `lintme`
10-
--> $DIR/lint-plugin-cmdline-allow.rs:10:4
11-
|
12-
LL | fn lintme() { }
13-
| ^^^^^^
14-
|
15-
note: lint level defined here
16-
--> $DIR/lint-plugin-cmdline-allow.rs:7:9
17-
|
18-
LL | #![warn(unused)]
19-
| ^^^^^^
20-
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
21-
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// run-pass
1+
// check-pass
22
// aux-build:lint-tool-test.rs
33
// ignore-stage1
44
// compile-flags: -A test-lint
55

66
#![feature(plugin)]
7-
#![warn(unused)]
8-
#![plugin(lint_tool_test)]
7+
#![plugin(lint_tool_test)] //~ WARNING compiler plugins are deprecated
98

109
fn lintme() {}
10+
//~^ WARNING item is named 'lintme' [clippy::test_lint]
1111

1212
pub fn main() {}

src/test/ui-fulldeps/lint-tool-cmdline-allow.stderr

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,18 @@ warning: lint name `test_lint` is deprecated and does not have an effect anymore
33
= note: requested on the command line with `-A test_lint`
44

55
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
6-
--> $DIR/lint-tool-cmdline-allow.rs:8:1
6+
--> $DIR/lint-tool-cmdline-allow.rs:7:1
77
|
88
LL | #![plugin(lint_tool_test)]
99
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
1010
|
1111
= note: `#[warn(deprecated)]` on by default
1212

1313
warning: item is named 'lintme'
14-
--> $DIR/lint-tool-cmdline-allow.rs:10:1
14+
--> $DIR/lint-tool-cmdline-allow.rs:9:1
1515
|
1616
LL | fn lintme() {}
1717
| ^^^^^^^^^^^^^^
1818
|
1919
= note: `#[warn(clippy::test_lint)]` on by default
2020

21-
warning: function is never used: `lintme`
22-
--> $DIR/lint-tool-cmdline-allow.rs:10:4
23-
|
24-
LL | fn lintme() {}
25-
| ^^^^^^
26-
|
27-
note: lint level defined here
28-
--> $DIR/lint-tool-cmdline-allow.rs:7:9
29-
|
30-
LL | #![warn(unused)]
31-
| ^^^^^^
32-
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
33-

src/test/ui-fulldeps/llvm-pass-plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(llvm_pass_plugin)]
6+
#![plugin(llvm_pass_plugin)] //~ WARNING compiler plugins are deprecated
77

88
pub fn main() { }

src/test/ui-fulldeps/lto-syntax-extension.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// no-prefer-dynamic
77

88
#![feature(plugin)]
9-
#![plugin(lto_syntax_extension_plugin)]
9+
#![plugin(lto_syntax_extension_plugin)] //~ WARNING compiler plugins are deprecated
1010

1111
extern crate lto_syntax_extension_lib;
1212

src/test/ui-fulldeps/outlive-expansion-phase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(outlive_expansion_phase)]
6+
#![plugin(outlive_expansion_phase)] //~ WARNING compiler plugins are deprecated
77

88
pub fn main() {}

src/test/ui-fulldeps/plugin-args-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(plugin_args)]
6+
#![plugin(plugin_args)] //~ WARNING compiler plugins are deprecated
77

88
fn main() {
99
assert_eq!(plugin_args!(), "");

src/test/ui-fulldeps/plugin-args-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(plugin_args())]
6+
#![plugin(plugin_args())] //~ WARNING compiler plugins are deprecated
77

88
fn main() {
99
assert_eq!(plugin_args!(), "");

src/test/ui-fulldeps/plugin-args-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(plugin_args(hello(there), how(are="you")))]
6+
#![plugin(plugin_args(hello(there), how(are="you")))] //~ WARNING compiler plugins are deprecated
77

88
fn main() {
99
assert_eq!(plugin_args!(), "hello(there), how(are = \"you\")");

src/test/ui-fulldeps/roman-numerals-macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ignore-stage1
44

55
#![feature(plugin)]
6-
#![plugin(roman_numerals)]
6+
#![plugin(roman_numerals)] //~ WARNING compiler plugins are deprecated
77

88
pub fn main() {
99
assert_eq!(rn!(MMXV), 2015);

0 commit comments

Comments
 (0)