Auto merge of #51498 - topecongiro:pub-parse_ident, r=petrochenkov

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.
This commit is contained in:
bors 2018-06-12 02:48:10 +00:00
commit 1abb4ef636

View File

@ -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)
}