Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/rust-2021/reserving-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down