Skip to content

Commit d1f95ef

Browse files
committed
--bless ui-fulldeps tests
1 parent 1b8ec97 commit d1f95ef

31 files changed

+210
-24
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
#![feature(plugin)] //~ ERROR crate is not marked with #![crate_okay]
66
#![plugin(lint_for_crate)]
7+
//~^ WARN use of deprecated attribute `plugin`
78

89
pub fn main() { }

src/test/ui-fulldeps/issue-15778-fail.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/issue-15778-fail.rs:6:1
3+
|
4+
LL | #![plugin(lint_for_crate)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
error: crate is not marked with #![crate_okay]
210
--> $DIR/issue-15778-fail.rs:5:1
311
|
412
LL | / #![feature(plugin)]
513
LL | | #![plugin(lint_for_crate)]
614
LL | |
15+
LL | |
716
LL | | pub fn main() { }
817
| |_________________^
918
|
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/issue-15778-pass.rs:8:1
3+
|
4+
LL | #![plugin(lint_for_crate_rpass)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/issue-40001.rs:6:1
3+
|
4+
LL | #![plugin(issue_40001_plugin)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+

src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// compile-flags: -D lint-me
44

55
#![feature(plugin)]
6+
67
#![plugin(lint_group_plugin_test)]
8+
//~^ WARN use of deprecated attribute `plugin`
79

810
fn lintme() { } //~ ERROR item is named 'lintme'
911

src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.stderr

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-group-plugin-deny-cmdline.rs:7:1
3+
|
4+
LL | #![plugin(lint_group_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
error: item is named 'lintme'
2-
--> $DIR/lint-group-plugin-deny-cmdline.rs:8:1
10+
--> $DIR/lint-group-plugin-deny-cmdline.rs:10:1
311
|
412
LL | fn lintme() { }
513
| ^^^^^^^^^^^^^^^
614
|
715
= note: `-D test-lint` implied by `-D lint-me`
816

917
error: item is named 'pleaselintme'
10-
--> $DIR/lint-group-plugin-deny-cmdline.rs:10:1
18+
--> $DIR/lint-group-plugin-deny-cmdline.rs:12:1
1119
|
1220
LL | fn pleaselintme() { }
1321
| ^^^^^^^^^^^^^^^^^^^^^

src/test/ui-fulldeps/lint-group-plugin.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-group-plugin.rs:6:1
3+
|
4+
LL | #![plugin(lint_group_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
warning: item is named 'lintme'
210
--> $DIR/lint-group-plugin.rs:9:1
311
|

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

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-plugin-cmdline-allow.rs:8:1
3+
|
4+
LL | #![plugin(lint_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
warning: function is never used: `lintme`
210
--> $DIR/lint-plugin-cmdline-allow.rs:10:1
311
|

src/test/ui-fulldeps/lint-plugin-deny-attr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![feature(plugin)]
55
#![plugin(lint_plugin_test)]
6+
//~^ WARN use of deprecated attribute `plugin`
67
#![deny(test_lint)]
78

89
fn lintme() { } //~ ERROR item is named 'lintme'

src/test/ui-fulldeps/lint-plugin-deny-attr.stderr

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-plugin-deny-attr.rs:5:1
3+
|
4+
LL | #![plugin(lint_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
error: item is named 'lintme'
2-
--> $DIR/lint-plugin-deny-attr.rs:8:1
10+
--> $DIR/lint-plugin-deny-attr.rs:9:1
311
|
412
LL | fn lintme() { }
513
| ^^^^^^^^^^^^^^^
614
|
715
note: lint level defined here
8-
--> $DIR/lint-plugin-deny-attr.rs:6:9
16+
--> $DIR/lint-plugin-deny-attr.rs:7:9
917
|
1018
LL | #![deny(test_lint)]
1119
| ^^^^^^^^^

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

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#![feature(plugin)]
66
#![plugin(lint_plugin_test)]
7+
//~^ WARN use of deprecated attribute `plugin`
78

89
fn lintme() { } //~ ERROR item is named 'lintme'
910

src/test/ui-fulldeps/lint-plugin-deny-cmdline.stderr

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-plugin-deny-cmdline.rs:6:1
3+
|
4+
LL | #![plugin(lint_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
error: item is named 'lintme'
2-
--> $DIR/lint-plugin-deny-cmdline.rs:8:1
10+
--> $DIR/lint-plugin-deny-cmdline.rs:9:1
311
|
412
LL | fn lintme() { }
513
| ^^^^^^^^^^^^^^^

src/test/ui-fulldeps/lint-plugin-forbid-attrs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![feature(plugin)]
55
#![plugin(lint_plugin_test)]
6+
//~^ WARN use of deprecated attribute `plugin`
67
#![forbid(test_lint)]
78

89
fn lintme() { } //~ ERROR item is named 'lintme'

src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
2-
--> $DIR/lint-plugin-forbid-attrs.rs:10:9
2+
--> $DIR/lint-plugin-forbid-attrs.rs:11:9
33
|
44
LL | #![forbid(test_lint)]
55
| --------- `forbid` level set here
66
...
77
LL | #[allow(test_lint)]
88
| ^^^^^^^^^ overruled by previous forbid
99

10+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
11+
--> $DIR/lint-plugin-forbid-attrs.rs:5:1
12+
|
13+
LL | #![plugin(lint_plugin_test)]
14+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
15+
|
16+
= note: `#[warn(deprecated)]` on by default
17+
1018
error: item is named 'lintme'
11-
--> $DIR/lint-plugin-forbid-attrs.rs:8:1
19+
--> $DIR/lint-plugin-forbid-attrs.rs:9:1
1220
|
1321
LL | fn lintme() { }
1422
| ^^^^^^^^^^^^^^^
1523
|
1624
note: lint level defined here
17-
--> $DIR/lint-plugin-forbid-attrs.rs:6:11
25+
--> $DIR/lint-plugin-forbid-attrs.rs:7:11
1826
|
1927
LL | #![forbid(test_lint)]
2028
| ^^^^^^^^^

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#![feature(plugin)]
66
#![plugin(lint_plugin_test)]
7-
7+
//~^ WARN use of deprecated attribute `plugin`
88
fn lintme() { } //~ ERROR item is named 'lintme'
99

1010
#[allow(test_lint)] //~ ERROR allow(test_lint) overruled by outer forbid(test_lint)

src/test/ui-fulldeps/lint-plugin-forbid-cmdline.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ LL | #[allow(test_lint)]
66
|
77
= note: `forbid` lint level was set on command line
88

9+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
10+
--> $DIR/lint-plugin-forbid-cmdline.rs:6:1
11+
|
12+
LL | #![plugin(lint_plugin_test)]
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
14+
|
15+
= note: `#[warn(deprecated)]` on by default
16+
917
error: item is named 'lintme'
1018
--> $DIR/lint-plugin-forbid-cmdline.rs:8:1
1119
|

src/test/ui-fulldeps/lint-plugin.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lint-plugin.rs:5:1
3+
|
4+
LL | #![plugin(lint_plugin_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
19
warning: item is named 'lintme'
210
--> $DIR/lint-plugin.rs:8:1
311
|

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

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ warning: lint name `test_lint` is deprecated and does not have an effect anymore
22
|
33
= note: requested on the command line with `-A test_lint`
44

5+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
6+
--> $DIR/lint-tool-cmdline-allow.rs:8:1
7+
|
8+
LL | #![plugin(lint_tool_test)]
9+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
10+
|
11+
= note: `#[warn(deprecated)]` on by default
12+
513
warning: item is named 'lintme'
614
--> $DIR/lint-tool-cmdline-allow.rs:10:1
715
|

src/test/ui-fulldeps/lint-tool-test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#![feature(plugin)]
66
#![plugin(lint_tool_test)]
7+
//~^ WARN use of deprecated attribute `plugin`
78
#![allow(dead_code)]
89
#![cfg_attr(foo, warn(test_lint))]
910
//~^ WARNING lint name `test_lint` is deprecated and may not have an effect in the future

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

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,66 @@
11
warning: lint name `test_lint` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
2-
--> $DIR/lint-tool-test.rs:8:23
2+
--> $DIR/lint-tool-test.rs:9:23
33
|
44
LL | #![cfg_attr(foo, warn(test_lint))]
55
| ^^^^^^^^^ help: change it to: `clippy::test_lint`
66
|
77
= note: `#[warn(renamed_and_removed_lints)]` on by default
88

99
warning: lint name `clippy_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
10-
--> $DIR/lint-tool-test.rs:11:9
10+
--> $DIR/lint-tool-test.rs:12:9
1111
|
1212
LL | #![deny(clippy_group)]
1313
| ^^^^^^^^^^^^ help: change it to: `clippy::group`
1414

1515
warning: lint name `test_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
16-
--> $DIR/lint-tool-test.rs:25:9
16+
--> $DIR/lint-tool-test.rs:26:9
1717
|
1818
LL | #[allow(test_group)]
1919
| ^^^^^^^^^^ help: change it to: `clippy::test_group`
2020

2121
warning: unknown lint: `this_lint_does_not_exist`
22-
--> $DIR/lint-tool-test.rs:27:8
22+
--> $DIR/lint-tool-test.rs:28:8
2323
|
2424
LL | #[deny(this_lint_does_not_exist)]
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^
2626
|
2727
= note: `#[warn(unknown_lints)]` on by default
2828

2929
warning: lint name `test_lint` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
30-
--> $DIR/lint-tool-test.rs:8:23
30+
--> $DIR/lint-tool-test.rs:9:23
3131
|
3232
LL | #![cfg_attr(foo, warn(test_lint))]
3333
| ^^^^^^^^^ help: change it to: `clippy::test_lint`
3434

35+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
36+
--> $DIR/lint-tool-test.rs:6:1
37+
|
38+
LL | #![plugin(lint_tool_test)]
39+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
40+
|
41+
= note: `#[warn(deprecated)]` on by default
42+
3543
error: item is named 'lintme'
36-
--> $DIR/lint-tool-test.rs:14:1
44+
--> $DIR/lint-tool-test.rs:15:1
3745
|
3846
LL | fn lintme() { }
3947
| ^^^^^^^^^^^^^^^
4048
|
4149
note: lint level defined here
42-
--> $DIR/lint-tool-test.rs:11:9
50+
--> $DIR/lint-tool-test.rs:12:9
4351
|
4452
LL | #![deny(clippy_group)]
4553
| ^^^^^^^^^^^^
4654
= note: `#[deny(clippy::test_lint)]` implied by `#[deny(clippy::group)]`
4755

4856
error: item is named 'lintmetoo'
49-
--> $DIR/lint-tool-test.rs:22:5
57+
--> $DIR/lint-tool-test.rs:23:5
5058
|
5159
LL | fn lintmetoo() { }
5260
| ^^^^^^^^^^^^^^^^^^
5361
|
5462
note: lint level defined here
55-
--> $DIR/lint-tool-test.rs:11:9
63+
--> $DIR/lint-tool-test.rs:12:9
5664
|
5765
LL | #![deny(clippy_group)]
5866
| ^^^^^^^^^^^^
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/llvm-pass-plugin.rs:6:1
3+
|
4+
LL | #![plugin(llvm_pass_plugin)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/lto-syntax-extension.rs:9:1
3+
|
4+
LL | #![plugin(lto_syntax_extension_plugin)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/outlive-expansion-phase.rs:6:1
3+
|
4+
LL | #![plugin(outlive_expansion_phase)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/plugin-args-1.rs:6:1
3+
|
4+
LL | #![plugin(plugin_args)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/plugin-args-2.rs:6:1
3+
|
4+
LL | #![plugin(plugin_args())]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
2+
--> $DIR/plugin-args-3.rs:6:1
3+
|
4+
LL | #![plugin(plugin_args(hello(there), how(are="you")))]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6+
|
7+
= note: `#[warn(deprecated)]` on by default
8+

src/test/ui-fulldeps/plugin-attr-register-deny.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![feature(plugin)]
55
#![plugin(attr_plugin_test)]
6+
//~^ WARN use of deprecated attribute `plugin`
67
#![deny(unused_attributes)]
78

89
#[baz]

0 commit comments

Comments
 (0)