Skip to content

Commit

Permalink
Rollup merge of #51498 - topecongiro:pub-parse_ident, r=petrochenkov
Browse files Browse the repository at this point in the history
Make parse_ident public

`parse_ident` was made private in #51265. In rustfmt the method is used to create a custom parser for macro call.
  • Loading branch information
Mark-Simulacrum authored Jun 11, 2018
2 parents 6c526c9 + ed74b0b commit b610d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ impl<'a> Parser<'a> {
err
}

fn parse_ident(&mut self) -> PResult<'a, ast::Ident> {
pub fn parse_ident(&mut self) -> PResult<'a, ast::Ident> {
self.parse_ident_common(true)
}

Expand Down

0 comments on commit b610d91

Please sign in to comment.