Reduce pub
exposure.
This commit is contained in:
parent
7ebd2bdbf6
commit
95b4c07ef8
8 changed files with 51 additions and 42 deletions
|
@ -127,7 +127,7 @@ impl<'a> Parser<'a> {
|
|||
/// Parse a type suitable for a field definition.
|
||||
/// The difference from `parse_ty` is that this version
|
||||
/// allows anonymous structs and unions.
|
||||
pub fn parse_ty_for_field_def(&mut self) -> PResult<'a, P<Ty>> {
|
||||
pub(super) fn parse_ty_for_field_def(&mut self) -> PResult<'a, P<Ty>> {
|
||||
if self.can_begin_anon_struct_or_union() {
|
||||
self.parse_anon_struct_or_union()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue