|
1 | 1 | #![feature(rustc_attrs)] |
2 | 2 |
|
3 | 3 | #[rustc_effective_visibility] |
4 | | -mod outer { //~ ERROR Public: pub(self), Exported: pub(self), Reachable: pub(self), ReachableFromImplTrait: pub(self) |
| 4 | +mod outer { //~ ERROR Public: pub(access_levels), Exported: pub(access_levels), Reachable: pub(access_levels), ReachableFromImplTrait: pub(access_levels) |
5 | 5 | #[rustc_effective_visibility] |
6 | | - pub mod inner1 { //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 6 | + pub mod inner1 { //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
7 | 7 |
|
8 | 8 | #[rustc_effective_visibility] |
9 | | - extern "C" {} //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 9 | + extern "C" {} //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
10 | 10 |
|
11 | 11 | #[rustc_effective_visibility] |
12 | | - pub trait PubTrait { //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 12 | + pub trait PubTrait { //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
13 | 13 | #[rustc_effective_visibility] |
14 | | - const A: i32; //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 14 | + const A: i32; //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
15 | 15 | #[rustc_effective_visibility] |
16 | | - type B; //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 16 | + type B; //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
17 | 17 | } |
18 | 18 |
|
19 | 19 | #[rustc_effective_visibility] |
20 | | - struct PrivStruct; //~ ERROR Public: pub(self), Exported: pub(self), Reachable: pub(self), ReachableFromImplTrait: pub(self) |
| 20 | + struct PrivStruct; //~ ERROR Public: pub(inner1), Exported: pub(inner1), Reachable: pub(inner1), ReachableFromImplTrait: pub(inner1) |
21 | 21 |
|
22 | 22 | #[rustc_effective_visibility] |
23 | | - pub union PubUnion { //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 23 | + pub union PubUnion { //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
24 | 24 | #[rustc_effective_visibility] |
25 | | - a: u8, //~ ERROR Public: pub(self), Exported: pub(self), Reachable: pub(self), ReachableFromImplTrait: pub(self) |
| 25 | + a: u8, //~ ERROR Public: pub(inner1), Exported: pub(inner1), Reachable: pub(inner1), ReachableFromImplTrait: pub(inner1) |
26 | 26 | #[rustc_effective_visibility] |
27 | | - pub b: u8, //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 27 | + pub b: u8, //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
28 | 28 | } |
29 | 29 |
|
30 | 30 | #[rustc_effective_visibility] |
31 | | - pub enum Enum { //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 31 | + pub enum Enum { //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
32 | 32 | #[rustc_effective_visibility] |
33 | | - A( //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 33 | + A( //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
34 | 34 | #[rustc_effective_visibility] |
35 | | - PubUnion, //~ ERROR Public: pub(self), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 35 | + PubUnion, //~ ERROR Public: pub(access_levels), Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
36 | 36 | ), |
37 | 37 | } |
38 | 38 | } |
39 | 39 |
|
40 | 40 | #[rustc_effective_visibility] |
41 | | - macro_rules! none_macro { //~ Public: pub(self), Exported: pub(self), Reachable: pub(self), ReachableFromImplTrait: pub(self) |
| 41 | + macro_rules! none_macro { //~ Public: pub(access_levels), Exported: pub(access_levels), Reachable: pub(access_levels), ReachableFromImplTrait: pub(access_levels) |
42 | 42 | () => {}; |
43 | 43 | } |
44 | 44 |
|
45 | 45 | #[macro_export] |
46 | 46 | #[rustc_effective_visibility] |
47 | | - macro_rules! public_macro { //~ Public: pub, Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
| 47 | + macro_rules! public_macro { //~ Public: pub, Exported: pub, Reachable: pub, ReachableFromImplTrait: pub |
48 | 48 | () => {}; |
49 | 49 | } |
50 | 50 |
|
51 | 51 | #[rustc_effective_visibility] |
52 | | - pub struct ReachableStruct { //~ ERROR Public: pub(self), Exported: pub(self), Reachable: pub, ReachableFromImplTrait: pub |
| 52 | + pub struct ReachableStruct { //~ ERROR Public: pub(access_levels), Exported: pub(access_levels), Reachable: pub, ReachableFromImplTrait: pub |
53 | 53 | #[rustc_effective_visibility] |
54 | | - pub a: u8, //~ ERROR Public: pub(self), Exported: pub(self), Reachable: pub, ReachableFromImplTrait: pub |
| 54 | + pub a: u8, //~ ERROR Public: pub(access_levels), Exported: pub(access_levels), Reachable: pub, ReachableFromImplTrait: pub |
55 | 55 | } |
56 | 56 | } |
57 | 57 |
|
|
0 commit comments