From 51719274f5aa52e085ab08c48012aa0677d8c08f Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 14 Jun 2021 15:46:31 +0200 Subject: [PATCH] Fix summary of rust-2021/reserving-syntax. --- src/rust-2021/reserving-syntax.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rust-2021/reserving-syntax.md b/src/rust-2021/reserving-syntax.md index b69fd3b5..52f8e122 100644 --- a/src/rust-2021/reserving-syntax.md +++ b/src/rust-2021/reserving-syntax.md @@ -3,7 +3,8 @@ ## Summary - `any_prefix#..`, `any_prefix".."`, and `any_prefix'..'` are reserved syntax, and no longer tokenize. -- These did not parse as valid Rust in any edition, except in arguments to macros. +- This is mostly relevant to macros. E.g. `quote!{ #a#b }` is no longer accepted. +- It doesn't treat keywords specially, so e.g. `match".." {}` is no longer accepted. - Insert whitespace to avoid errors. ## Details