dtolnay / dtolnay/syn

Parse attributes inside of tuple patterns

Open
#2,013 0 comments 1 reaction 0 assignees View on GitHub
syntax
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

- https://github.com/rust-lang/rfcs/pull/3532

```rust
let (a, #[cfg(something)] b) = my_tuple;
let MyStruct(a, #[cfg(something)] b) = x;
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with RFC 3532 and the two tuple-pattern examples in this issue. Trace how syn currently parses tuple and tuple-struct patterns, then add focused coverage for attributes in both forms; done means the examples parse successfully without regressing existing pattern parsing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.