1
Fork 0

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:
Alex Crichton 2014-04-15 18:02:58 -07:00
parent 83351fa02e
commit 5cfbc0e7ae
27 changed files with 31 additions and 198 deletions

View file

@ -41,7 +41,7 @@ impl Module {
Module {
name : name,
id: 0,
vis: ast::Private,
vis: ast::Inherited,
where: syntax::codemap::DUMMY_SP,
attrs : Vec::new(),
structs : Vec::new(),