2023-03-28 16:26:41 +00:00
|
|
|
error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
|
|
|
--> $DIR/effective_visibilities.rs:1:1
|
|
|
|
|
|
|
|
|
LL | / #![rustc_effective_visibility]
|
|
|
|
LL | | #![feature(rustc_attrs)]
|
|
|
|
LL | |
|
|
|
|
LL | | #[rustc_effective_visibility]
|
|
|
|
... |
|
|
|
|
LL | |
|
|
|
|
LL | | fn main() {}
|
|
|
|
| |____________^
|
|
|
|
|
2022-09-22 13:19:53 +00:00
|
|
|
error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate)
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:5:1
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | mod outer {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:7:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub mod inner1 {
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2022-10-28 10:58:21 +00:00
|
|
|
error: not in the table
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:10:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:13:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub trait PubTrait {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-03-22 12:58:49 +00:00
|
|
|
error: not in the table
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:21:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | struct PrivStruct;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-03-22 12:58:49 +00:00
|
|
|
error: not in the table
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:21:9
|
2022-11-04 12:28:03 +00:00
|
|
|
|
|
|
|
|
LL | struct PrivStruct;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2022-11-04 12:28:03 +00:00
|
|
|
|
2022-09-22 13:19:53 +00:00
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:25:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub union PubUnion {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-03-22 12:58:49 +00:00
|
|
|
error: not in the table
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:27:13
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | a: u8,
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:29:13
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub b: u8,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:33:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub enum Enum {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:35:13
|
2022-11-04 12:28:03 +00:00
|
|
|
|
|
|
|
|
LL | A(
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:35:13
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | A(
|
|
|
|
| ^
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:38:17
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | PubUnion,
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-10-30 11:55:58 +00:00
|
|
|
error: not in the table
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:44:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | macro_rules! none_macro {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-10-30 11:55:58 +00:00
|
|
|
error: Direct: pub(self), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:50:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | macro_rules! public_macro {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:55:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub struct ReachableStruct {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:57:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub a: u8,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:62:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub use outer::inner1;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:68:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub type HalfPublicImport = u8;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate)
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:71:5
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) const HalfPublicImport: u8 = 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:75:9
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | pub use half_public_import::HalfPublicImport;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:15:13
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | const A: i32;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
|
2023-03-28 16:26:41 +00:00
|
|
|
--> $DIR/effective_visibilities.rs:17:13
|
2022-09-22 13:19:53 +00:00
|
|
|
|
|
|
|
|
LL | type B;
|
|
|
|
| ^^^^^^
|
|
|
|
|
2023-03-28 16:26:41 +00:00
|
|
|
error: aborting due to 24 previous errors
|
2022-09-22 13:19:53 +00:00
|
|
|
|