Skip to content

Commit f490b7c

Browse files
committed
Add rule name for raw lifetime edition differences
1 parent f04cd63 commit f490b7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tokens.md

+1
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ A raw lifetime is like a normal lifetime, but its identifier is prefixed by `r#`
781781
r[lex.token.life.raw.allowed]
782782
Unlike a normal lifetime, a raw lifetime may be any strict or reserved keyword except the ones listed above for `RAW_LIFETIME`.
783783

784+
r[lex.token.life.raw.edition2021]
784785
> **Edition differences**: Raw lifetimes are accepted in the 2021
785786
> edition or later. In earlier additions the token `'r#lt` is lexed as `'r # lt`.
786787

0 commit comments

Comments
 (0)