Parse and feature gate raw address of expressions

This commit is contained in:
Matthew Jasper 2019-11-23 14:22:00 +00:00
parent a8efd31f2b
commit 064bed0f31
4 changed files with 8 additions and 2 deletions

View file

@ -592,7 +592,7 @@ impl<'a> Parser<'a> {
}
}
/// Parse `& mut? <expr>` or `& raw [ const | mut ] <expr>`
/// Parse `& mut? <expr>` or `& raw [ const | mut ] <expr>`.
fn parse_address_of(&mut self, lo: Span) -> PResult<'a, (Span, ExprKind)> {
self.expect_and()?;
let (k, m) = if self.check_keyword(kw::Raw)