update :vis implementation to current rust

This commit is contained in:
Alex Burka
2017-04-02 04:21:12 +00:00
parent a2489495d9
commit d53e413e04
3 changed files with 16 additions and 17 deletions

View File

@@ -5056,7 +5056,7 @@ impl<'a> Parser<'a> {
/// and `pub(super)` for `pub(in super)`. If the following element can't be a tuple (i.e. it's
/// a function definition, it's not a tuple struct field) and the contents within the parens
/// isn't valid, emit a proper diagnostic.
fn parse_visibility(&mut self, can_take_tuple: bool) -> PResult<'a, Visibility> {
pub fn parse_visibility(&mut self, can_take_tuple: bool) -> PResult<'a, Visibility> {
if !self.eat_keyword(keywords::Pub) {
return Ok(Visibility::Inherited)
}