Rollup merge of #97254 - jhpratt:remove-crate-vis, r=cjgillot
Remove feature: `crate` visibility modifier FCP completed in #53120.
This commit is contained in:
commit
b73f1c77a7
17 changed files with 19 additions and 136 deletions
|
@ -2552,15 +2552,6 @@ impl PolyTraitRef {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Encodable, Decodable, Debug, HashStable_Generic)]
|
||||
pub enum CrateSugar {
|
||||
/// Source is `pub(crate)`.
|
||||
PubCrate,
|
||||
|
||||
/// Source is (just) `crate`.
|
||||
JustCrate,
|
||||
}
|
||||
|
||||
#[derive(Clone, Encodable, Decodable, Debug)]
|
||||
pub struct Visibility {
|
||||
pub kind: VisibilityKind,
|
||||
|
@ -2571,7 +2562,6 @@ pub struct Visibility {
|
|||
#[derive(Clone, Encodable, Decodable, Debug)]
|
||||
pub enum VisibilityKind {
|
||||
Public,
|
||||
Crate(CrateSugar),
|
||||
Restricted { path: P<Path>, id: NodeId },
|
||||
Inherited,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue