rustc: Remove private enum variants
This removes the `priv` keyword from the language and removes private enum variants as a result. The remaining use cases of private enum variants were all updated to be a struct with one private field that is a private enum. RFC: 0006-remove-priv Closes #13535
This commit is contained in:
parent
83351fa02e
commit
5cfbc0e7ae
27 changed files with 31 additions and 198 deletions
|
|
@ -1586,10 +1586,10 @@ pub struct Bar {
|
|||
field: int
|
||||
}
|
||||
|
||||
// Declare a public enum with public and private variants
|
||||
// Declare a public enum with two public variants
|
||||
pub enum State {
|
||||
PubliclyAccessibleState,
|
||||
priv PrivatelyAccessibleState
|
||||
PubliclyAccessibleState2,
|
||||
}
|
||||
~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue