Skip to content

Commit

Permalink
document parse_late_bound_lifetime_defs
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Dec 20, 2019
1 parent f02fd50 commit 0ebd421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_parse/parser/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ impl<'a> Parser<'a> {
Ok(GenericBound::Trait(poly_trait, modifier))
}

/// Optionally parses `for<$generic_params>`.
pub(super) fn parse_late_bound_lifetime_defs(&mut self) -> PResult<'a, Vec<GenericParam>> {
if self.eat_keyword(kw::For) {
self.expect_lt()?;
Expand Down

0 comments on commit 0ebd421

Please sign in to comment.