Skip to content

Commit 39a4238

Browse files
committed
Move compile-fail-fulldeps tests to ui-fulldeps
1 parent f31b6ab commit 39a4238

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+444
-99
lines changed

src/test/compile-fail-fulldeps/auxiliary/lint_group_plugin_test.rs

-51
This file was deleted.

src/test/compile-fail-fulldeps/auxiliary/lint_plugin_test.rs

-48
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error[E0597]: `arena` does not live long enough
2+
--> $DIR/dropck_tarena_cycle_checked.rs:126:8
3+
|
4+
LL | f(&arena);
5+
| ^^^^^ borrowed value does not live long enough
6+
LL | } //~^ ERROR `arena` does not live long enough
7+
| - `arena` dropped here while still borrowed
8+
|
9+
= note: values in a scope are dropped in the opposite order they are created
10+
11+
error: aborting due to previous error
12+
13+
For more information about this error, try `rustc --explain E0597`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error[E0597]: `arena` does not live long enough
2+
--> $DIR/dropck_tarena_unsound_drop.rs:51:8
3+
|
4+
LL | f(&arena);
5+
| ^^^^^ borrowed value does not live long enough
6+
LL | } //~^ ERROR `arena` does not live long enough
7+
| - `arena` dropped here while still borrowed
8+
|
9+
= note: values in a scope are dropped in the opposite order they are created
10+
11+
error: aborting due to previous error
12+
13+
For more information about this error, try `rustc --explain E0597`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
2+
--> $DIR/explore-issue-38412.rs:31:63
3+
|
4+
LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
8+
9+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
10+
--> $DIR/explore-issue-38412.rs:40:5
11+
|
12+
LL | r.a_unstable_undeclared_pub; //~ ERROR use of unstable library feature
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14+
|
15+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
16+
17+
error[E0616]: field `b_crate` of struct `pub_and_stability::Record` is private
18+
--> $DIR/explore-issue-38412.rs:41:5
19+
|
20+
LL | r.b_crate; //~ ERROR is private
21+
| ^^^^^^^^^
22+
23+
error[E0616]: field `c_mod` of struct `pub_and_stability::Record` is private
24+
--> $DIR/explore-issue-38412.rs:42:5
25+
|
26+
LL | r.c_mod; //~ ERROR is private
27+
| ^^^^^^^
28+
29+
error[E0616]: field `d_priv` of struct `pub_and_stability::Record` is private
30+
--> $DIR/explore-issue-38412.rs:43:5
31+
|
32+
LL | r.d_priv; //~ ERROR is private
33+
| ^^^^^^^^
34+
35+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
36+
--> $DIR/explore-issue-38412.rs:47:5
37+
|
38+
LL | t.2; //~ ERROR use of unstable library feature
39+
| ^^^
40+
|
41+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
42+
43+
error[E0616]: field `3` of struct `pub_and_stability::Tuple` is private
44+
--> $DIR/explore-issue-38412.rs:48:5
45+
|
46+
LL | t.3; //~ ERROR is private
47+
| ^^^
48+
49+
error[E0616]: field `4` of struct `pub_and_stability::Tuple` is private
50+
--> $DIR/explore-issue-38412.rs:49:5
51+
|
52+
LL | t.4; //~ ERROR is private
53+
| ^^^
54+
55+
error[E0616]: field `5` of struct `pub_and_stability::Tuple` is private
56+
--> $DIR/explore-issue-38412.rs:50:5
57+
|
58+
LL | t.5; //~ ERROR is private
59+
| ^^^
60+
61+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
62+
--> $DIR/explore-issue-38412.rs:54:7
63+
|
64+
LL | r.unstable_undeclared_trait_method(); //~ ERROR use of unstable library feature
65+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66+
|
67+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
68+
69+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
70+
--> $DIR/explore-issue-38412.rs:58:7
71+
|
72+
LL | r.unstable_undeclared(); //~ ERROR use of unstable library feature
73+
| ^^^^^^^^^^^^^^^^^^^
74+
|
75+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
76+
77+
error[E0624]: method `pub_crate` is private
78+
--> $DIR/explore-issue-38412.rs:60:7
79+
|
80+
LL | r.pub_crate(); //~ ERROR `pub_crate` is private
81+
| ^^^^^^^^^
82+
83+
error[E0624]: method `pub_mod` is private
84+
--> $DIR/explore-issue-38412.rs:61:7
85+
|
86+
LL | r.pub_mod(); //~ ERROR `pub_mod` is private
87+
| ^^^^^^^
88+
89+
error[E0624]: method `private` is private
90+
--> $DIR/explore-issue-38412.rs:62:7
91+
|
92+
LL | r.private(); //~ ERROR `private` is private
93+
| ^^^^^^^
94+
95+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
96+
--> $DIR/explore-issue-38412.rs:67:7
97+
|
98+
LL | t.unstable_undeclared_trait_method(); //~ ERROR use of unstable library feature
99+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100+
|
101+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
102+
103+
error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)
104+
--> $DIR/explore-issue-38412.rs:71:7
105+
|
106+
LL | t.unstable_undeclared(); //~ ERROR use of unstable library feature
107+
| ^^^^^^^^^^^^^^^^^^^
108+
|
109+
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
110+
111+
error[E0624]: method `pub_crate` is private
112+
--> $DIR/explore-issue-38412.rs:73:7
113+
|
114+
LL | t.pub_crate(); //~ ERROR `pub_crate` is private
115+
| ^^^^^^^^^
116+
117+
error[E0624]: method `pub_mod` is private
118+
--> $DIR/explore-issue-38412.rs:74:7
119+
|
120+
LL | t.pub_mod(); //~ ERROR `pub_mod` is private
121+
| ^^^^^^^
122+
123+
error[E0624]: method `private` is private
124+
--> $DIR/explore-issue-38412.rs:75:7
125+
|
126+
LL | t.private(); //~ ERROR `private` is private
127+
| ^^^^^^^
128+
129+
error: aborting due to 19 previous errors
130+
131+
Some errors occurred: E0616, E0624, E0658.
132+
For more information about an error, try `rustc --explain E0616`.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0658]: compiler plugins are experimental and possibly buggy (see issue #29597)
2+
--> $DIR/gated-plugin.rs:13:1
3+
|
4+
LL | #![plugin(macro_crate_test)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(plugin)] to the crate attributes to enable
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0658`.
+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
error: cannot find macro `quote_path!` in this scope
2+
--> $DIR/gated-quote.rs:65:13
3+
|
4+
LL | let x = quote_path!(ecx, 3);
5+
| ^^^^^^^^^^
6+
7+
error: cannot find macro `quote_meta_item!` in this scope
8+
--> $DIR/gated-quote.rs:63:13
9+
|
10+
LL | let x = quote_meta_item!(ecx, 3);
11+
| ^^^^^^^^^^^^^^^
12+
13+
error: cannot find macro `quote_block!` in this scope
14+
--> $DIR/gated-quote.rs:61:13
15+
|
16+
LL | let x = quote_block!(ecx, 3);
17+
| ^^^^^^^^^^^
18+
19+
error: cannot find macro `quote_arg!` in this scope
20+
--> $DIR/gated-quote.rs:59:13
21+
|
22+
LL | let x = quote_arg!(ecx, 3);
23+
| ^^^^^^^^^
24+
25+
error: cannot find macro `quote_attr!` in this scope
26+
--> $DIR/gated-quote.rs:57:13
27+
|
28+
LL | let x = quote_attr!(ecx, 3);
29+
| ^^^^^^^^^^
30+
31+
error: cannot find macro `quote_stmt!` in this scope
32+
--> $DIR/gated-quote.rs:55:13
33+
|
34+
LL | let x = quote_stmt!(ecx, 3);
35+
| ^^^^^^^^^^
36+
37+
error: cannot find macro `quote_arm!` in this scope
38+
--> $DIR/gated-quote.rs:53:13
39+
|
40+
LL | let x = quote_arm!(ecx, 3);
41+
| ^^^^^^^^^
42+
43+
error: cannot find macro `quote_pat!` in this scope
44+
--> $DIR/gated-quote.rs:51:13
45+
|
46+
LL | let x = quote_pat!(ecx, 3);
47+
| ^^^^^^^^^
48+
49+
error: cannot find macro `quote_item!` in this scope
50+
--> $DIR/gated-quote.rs:49:13
51+
|
52+
LL | let x = quote_item!(ecx, 3);
53+
| ^^^^^^^^^^
54+
55+
error: cannot find macro `quote_method!` in this scope
56+
--> $DIR/gated-quote.rs:47:13
57+
|
58+
LL | let x = quote_method!(ecx, 3);
59+
| ^^^^^^^^^^^^
60+
61+
error: cannot find macro `quote_ty!` in this scope
62+
--> $DIR/gated-quote.rs:45:13
63+
|
64+
LL | let x = quote_ty!(ecx, 3);
65+
| ^^^^^^^^
66+
67+
error: cannot find macro `quote_expr!` in this scope
68+
--> $DIR/gated-quote.rs:43:13
69+
|
70+
LL | let x = quote_expr!(ecx, 3);
71+
| ^^^^^^^^^^
72+
73+
error: cannot find macro `quote_tokens!` in this scope
74+
--> $DIR/gated-quote.rs:41:13
75+
|
76+
LL | let x = quote_tokens!(ecx, 3);
77+
| ^^^^^^^^^^^^
78+
79+
error: aborting due to 13 previous errors
80+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error: crate is not marked with #![crate_okay]
2+
--> $DIR/issue-15778-fail.rs:15:1
3+
|
4+
LL | / #![feature(plugin)] //~ ERROR crate is not marked with #![crate_okay]
5+
LL | | #![plugin(lint_for_crate)]
6+
LL | |
7+
LL | | pub fn main() { }
8+
| |_________________^
9+
|
10+
= note: requested on the command line with `-D crate-not-okay`
11+
12+
error: aborting due to previous error
13+
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0574]: expected struct, variant or union type, found trait `Trait`
2+
--> $DIR/issue-18986.rs:18:9
3+
|
4+
LL | Trait { x: 42 } => () //~ ERROR expected struct, variant or union type, found trait `Trait`
5+
| ^^^^^ not a struct, variant or union type
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0574`.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: expected unsuffixed literal or identifier, found a
2+
--> $DIR/issue-48941.rs:20:24
3+
|
4+
LL | #[noop_attribute("hi", rank = a)] //~ ERROR expected unsuffixed literal or identifier, found a
5+
| ^^^^
6+
7+
error: expected unsuffixed literal or identifier, found =
8+
--> $DIR/issue-48941.rs:23:27
9+
|
10+
LL | #[noop_attribute("/user", data= = "<user")] //~ ERROR literal or identifier
11+
| ^^^^
12+
13+
error: aborting due to 2 previous errors
14+

0 commit comments

Comments
 (0)