This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Should there be more path kinds? #56
Labels
ambiguity
Potential sources of ambiguity
grammar
Issues with the definition of the rust grammar
restrictions
Issues related to the permissiveness of the grammar
Currently the grammar has two path kinds: "Path" and "QPath".
However, I feel like there should be two more kinds. Here's what I see:
"Simple" paths, or "mod"-style paths.
See https://doc.rust-lang.org/nightly/reference/paths.html#simple-paths
use
pathsuse a<b>
pub (in a<b>)
a<b>!{}
#[a<b>]
"Expression" paths
See https://doc.rust-lang.org/nightly/reference/paths.html#paths-in-expressions
In patterns and a variety of expressions, this path form doesn't allow generic arguments without
::
.Expressions:
let x = a<b>;
Patterns
if let x = ..a<b> {}
The text was updated successfully, but these errors were encountered: