Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse multiple bounding lifetimes in where clauses #20049

Closed
jroesch opened this issue Dec 19, 2014 · 1 comment
Closed

Parse multiple bounding lifetimes in where clauses #20049

jroesch opened this issue Dec 19, 2014 · 1 comment

Comments

@jroesch
Copy link
Member

jroesch commented Dec 19, 2014

My current patch only accepts a single bound (i.e 'a : 'b), we should fully generalize this to accept multiple liftetime bounds like 'a : 'b + 'c. This should be a very easy change, at a high level:

  • modify the parser to invoke self.parse_lifetimes(token::BinOp(token::Plus)) instead of self.parse_lifetime()
  • modify the WhereRegionPredicate type to accept a list of bounds instead of a single one
  • loop over the bounds creating a RegionOutlives constraint for each
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant