Parse item-level const block syntax
Open
syntax
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 374
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 2
Description
- https://github.com/rust-lang/rust/issues/149226
```rust
const {
let a = 2 + 2;
assert!(a != 5)
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Rust syntax example and the linked rust-lang/rust issue to confirm the accepted item-level const-block grammar. Then locate syn's existing item and block parsing entry points; done means the shown const block parses successfully, including its let binding and assert statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100