File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,15 @@ pub enum TokenKind {
237
237
/// treat regular and interpolated lifetime identifiers in the same way.
238
238
Lifetime ( Symbol ) ,
239
239
240
+ /// An embedded AST node, as produced by a macro. This only exists for
241
+ /// historical reasons. We'd like to get rid of it, for multiple reasons.
242
+ /// - It's conceptually very strange. Saying a token can contain an AST
243
+ /// node is like saying, in natural language, that a word can contain a
244
+ /// sentence.
245
+ /// - It requires special handling in a bunch of places in the parser.
246
+ /// - It prevents `Token` from implementing `Copy`.
247
+ /// It adds complexity and likely slows things down. Please don't add new
248
+ /// occurrences of this token kind!
240
249
Interpolated ( Lrc < Nonterminal > ) ,
241
250
242
251
/// A doc comment token.
You can’t perform that action at this time.
0 commit comments