Remove feature: crate
visibility modifier
This commit is contained in:
parent
6970246886
commit
8cece636b2
17 changed files with 19 additions and 116 deletions
|
@ -403,10 +403,7 @@ impl<'a> State<'a> {
|
|||
pub(crate) fn print_visibility(&mut self, vis: &ast::Visibility) {
|
||||
match vis.kind {
|
||||
ast::VisibilityKind::Public => self.word_nbsp("pub"),
|
||||
ast::VisibilityKind::Crate(sugar) => match sugar {
|
||||
ast::CrateSugar::PubCrate => self.word_nbsp("pub(crate)"),
|
||||
ast::CrateSugar::JustCrate => self.word_nbsp("crate"),
|
||||
},
|
||||
ast::VisibilityKind::Crate => self.word_nbsp("pub(crate)"),
|
||||
ast::VisibilityKind::Restricted { ref path, .. } => {
|
||||
let path = Self::to_string(|s| s.print_path(path, false, 0));
|
||||
if path == "self" || path == "super" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue