|
1 | 1 | error: `#[export_stable]` attribute cannot be used on traits |
2 | | - --> $DIR/exportable.rs:130:5 |
| 2 | + --> $DIR/exportable.rs:135:5 |
3 | 3 | | |
4 | 4 | LL | #[export_stable] |
5 | 5 | | ^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = help: `#[export_stable]` can be applied to associated types, data types, functions, inherent impl blocks, modules, type aliases, and use statements |
8 | 8 |
|
9 | 9 | error: `#[export_stable]` attribute cannot be used on constants |
10 | | - --> $DIR/exportable.rs:134:5 |
| 10 | + --> $DIR/exportable.rs:139:5 |
11 | 11 | | |
12 | 12 | LL | #[export_stable] |
13 | 13 | | ^^^^^^^^^^^^^^^^ |
14 | 14 | | |
15 | 15 | = help: `#[export_stable]` can be applied to associated types, data types, functions, inherent impl blocks, modules, type aliases, and use statements |
16 | 16 |
|
17 | 17 | error: private items are not exportable |
18 | | - --> $DIR/exportable.rs:10:5 |
| 18 | + --> $DIR/exportable.rs:15:5 |
19 | 19 | | |
20 | 20 | LL | pub struct S; |
21 | 21 | | ^^^^^^^^^^^^ |
22 | 22 | | |
23 | 23 | note: is only usable at visibility `pub(crate)` |
24 | | - --> $DIR/exportable.rs:10:5 |
| 24 | + --> $DIR/exportable.rs:15:5 |
25 | 25 | | |
26 | 26 | LL | pub struct S; |
27 | 27 | | ^^^^^^^^^^^^ |
28 | 28 |
|
29 | 29 | error: private items are not exportable |
30 | | - --> $DIR/exportable.rs:123:5 |
| 30 | + --> $DIR/exportable.rs:128:5 |
31 | 31 | | |
32 | 32 | LL | enum E { |
33 | 33 | | ^^^^^^ |
34 | 34 | | |
35 | 35 | note: is only usable at visibility `pub(self)` |
36 | | - --> $DIR/exportable.rs:123:5 |
| 36 | + --> $DIR/exportable.rs:128:5 |
37 | 37 | | |
38 | 38 | LL | enum E { |
39 | 39 | | ^^^^^^ |
40 | 40 |
|
41 | 41 | error: only functions with "C" ABI are exportable |
42 | | - --> $DIR/exportable.rs:13:5 |
| 42 | + --> $DIR/exportable.rs:18:5 |
43 | 43 | | |
44 | 44 | LL | pub fn foo() -> i32 { 0 } |
45 | 45 | | ^^^^^^^^^^^^^^^^^^^ |
46 | 46 |
|
47 | 47 | error: types with unstable layout are not exportable |
48 | | - --> $DIR/exportable.rs:27:5 |
| 48 | + --> $DIR/exportable.rs:32:5 |
49 | 49 | | |
50 | 50 | LL | pub struct S3; |
51 | 51 | | ^^^^^^^^^^^^^ |
52 | 52 |
|
53 | 53 | error: only functions with "C" ABI are exportable |
54 | | - --> $DIR/exportable.rs:33:5 |
| 54 | + --> $DIR/exportable.rs:38:5 |
55 | 55 | | |
56 | 56 | LL | pub fn foo1() {} |
57 | 57 | | ^^^^^^^^^^^^^ |
58 | 58 |
|
59 | 59 | error: function with `#[export_stable]` attribute uses type `Box<fn_sig::S>`, which is not exportable |
60 | | - --> $DIR/exportable.rs:44:5 |
| 60 | + --> $DIR/exportable.rs:49:5 |
61 | 61 | | |
62 | 62 | LL | pub extern "C" fn foo3(x: Box<S>) -> i32 { 0 } |
63 | 63 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^ |
64 | 64 | | | |
65 | 65 | | not exportable |
66 | 66 |
|
67 | 67 | error: method with `#[export_stable]` attribute uses type `&impl_item::S`, which is not exportable |
68 | | - --> $DIR/exportable.rs:53:9 |
| 68 | + --> $DIR/exportable.rs:58:9 |
69 | 69 | | |
70 | 70 | LL | pub extern "C" fn foo1(&self) -> i32 { 0 } |
71 | 71 | | ^^^^^^^^^^^^^^^^^^^^^^^-----^^^^^^^^ |
72 | 72 | | | |
73 | 73 | | not exportable |
74 | 74 |
|
75 | 75 | error: method with `#[export_stable]` attribute uses type `impl_item::S`, which is not exportable |
76 | | - --> $DIR/exportable.rs:57:9 |
| 76 | + --> $DIR/exportable.rs:62:9 |
77 | 77 | | |
78 | 78 | LL | pub extern "C" fn foo2(self) -> i32 { 0 } |
79 | 79 | | ^^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^^ |
80 | 80 | | | |
81 | 81 | | not exportable |
82 | 82 |
|
83 | 83 | error: generic functions are not exportable |
84 | | - --> $DIR/exportable.rs:65:9 |
| 84 | + --> $DIR/exportable.rs:70:9 |
85 | 85 | | |
86 | 86 | LL | pub extern "C" fn foo1(&self) {} |
87 | 87 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
88 | 88 |
|
89 | 89 | error: function with `#[export_stable]` attribute uses type `(u32,)`, which is not exportable |
90 | | - --> $DIR/exportable.rs:81:5 |
| 90 | + --> $DIR/exportable.rs:86:5 |
91 | 91 | | |
92 | 92 | LL | pub extern "C" fn foo1(x: <S as Trait>::Type) -> u32 { x.0 } |
93 | 93 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^^^^ |
94 | 94 | | | |
95 | 95 | | not exportable |
96 | 96 |
|
97 | 97 | error: function with `#[export_stable]` attribute uses type `[i32; 4]`, which is not exportable |
98 | | - --> $DIR/exportable.rs:88:5 |
| 98 | + --> $DIR/exportable.rs:93:5 |
99 | 99 | | |
100 | 100 | LL | pub extern "C" fn foo2(_x: Type) {} |
101 | 101 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^----^ |
102 | 102 | | | |
103 | 103 | | not exportable |
104 | 104 |
|
105 | 105 | error: function with `#[export_stable]` attribute uses type `extern "C" fn()`, which is not exportable |
106 | | - --> $DIR/exportable.rs:97:5 |
| 106 | + --> $DIR/exportable.rs:102:5 |
107 | 107 | | |
108 | 108 | LL | pub extern "C" fn foo3(_x: S::Type) {} |
109 | 109 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^ |
110 | 110 | | | |
111 | 111 | | not exportable |
112 | 112 |
|
113 | 113 | error: function with `#[export_stable]` attribute uses type `impl Copy`, which is not exportable |
114 | | - --> $DIR/exportable.rs:101:5 |
| 114 | + --> $DIR/exportable.rs:106:5 |
115 | 115 | | |
116 | 116 | LL | pub extern "C" fn foo4() -> impl Copy { |
117 | 117 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------- |
118 | 118 | | | |
119 | 119 | | not exportable |
120 | 120 |
|
121 | 121 | error: ADT types with private fields are not exportable |
122 | | - --> $DIR/exportable.rs:116:5 |
| 122 | + --> $DIR/exportable.rs:121:5 |
123 | 123 | | |
124 | 124 | LL | pub struct S2 { |
125 | 125 | | ^^^^^^^^^^^^^ |
126 | 126 | | |
127 | 127 | note: `x` is private |
128 | | - --> $DIR/exportable.rs:118:9 |
| 128 | + --> $DIR/exportable.rs:123:9 |
129 | 129 | | |
130 | 130 | LL | x: i32 |
131 | 131 | | ^^^^^^ |
|
0 commit comments