mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
make stuff private
This commit is contained in:
parent
5b617e3bf8
commit
df6efe62c5
@ -68,7 +68,7 @@ pub(crate) struct ParserImpl<'t> {
|
||||
}
|
||||
|
||||
impl<'t> ParserImpl<'t> {
|
||||
pub(crate) fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
|
||||
fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
|
||||
ParserImpl {
|
||||
parser_input: inp,
|
||||
pos: InputPosition::new(),
|
||||
@ -77,7 +77,7 @@ impl<'t> ParserImpl<'t> {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn into_events(self) -> Vec<Event> {
|
||||
fn into_events(self) -> Vec<Event> {
|
||||
assert_eq!(self.nth(0), EOF);
|
||||
self.events
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user