-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
C-unknownTechnical complexity: UnknownTechnical complexity: UnknownK-bugKind: BugKind: BugK-tracking-issueKind: Tracking issueKind: Tracking issueP-mediumPriority: MediumPriority: MediumS-actionableStatus: ActionableStatus: Actionable
Description
-
fn main() { return x + .. .field }- wrong precedence
- original source: dtolnay
-
while || Foo {} {};- rustc parses
Fooas a unit-struct while we parse it asFoo {} - believed cause: we don't forward structpolicy diligently / aggressively enough
- original source
- rustc parses
- our principled approach to parsing ranges using straightforward precedence levels doesn't reflect reality unfortunately since rustc seems to parse ranges in a gnarly(?) "ad hoc" way? still need to figure this out experimentally
- we don't reject raw path segment keywords
- we don't parse
for _ in .. {}etc.- since
{begins an expr, so we try to parse block and expect another block - rustc has a hack for this; we also need one (well, I hope looking at structpolicy will suffice which shouldn't be that hacky)
- since
- expr attr precedence
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-unknownTechnical complexity: UnknownTechnical complexity: UnknownK-bugKind: BugKind: BugK-tracking-issueKind: Tracking issueKind: Tracking issueP-mediumPriority: MediumPriority: MediumS-actionableStatus: ActionableStatus: Actionable