Commit 3a4b5c5
Add a note to patterns.ident.precedent
This attempts to clarify the parsing ambiguity between
`IdentifierPattern` and `PathPattern`.
See [`PatKind::Ident`] and [`lower_pat_ident`].
Closes #605
[`PatKind::Ident`]: https://github.com/rust-lang/rust/blob/dc2c3564d273cf8ccce32dc4f47eaa27063bceb9/compiler/rustc_ast/src/ast.rs#L862-L866
[`lower_pat_ident`]: https://github.com/rust-lang/rust/blob/dc2c3564d273cf8ccce32dc4f47eaa27063bceb9/compiler/rustc_ast_lowering/src/pat.rs#L278-L3331 parent 579dafe commit 3a4b5c5
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
260 | 282 | | |
261 | 283 | | |
262 | 284 | | |
| |||
1085 | 1107 | | |
1086 | 1108 | | |
1087 | 1109 | | |
| 1110 | + | |
1088 | 1111 | | |
1089 | 1112 | | |
1090 | 1113 | | |
| |||
0 commit comments