Skip to content

Commit b610d91

Browse files
Rollup merge of rust-lang#51498 - topecongiro:pub-parse_ident, r=petrochenkov
Make parse_ident public `parse_ident` was made private in rust-lang#51265. In rustfmt the method is used to create a custom parser for macro call.
2 parents 6c526c9 + ed74b0b commit b610d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ impl<'a> Parser<'a> {
760760
err
761761
}
762762

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

0 commit comments

Comments
 (0)