dtolnay / dtolnay/syn

Parse item-level const block syntax

Open
#1,986 0 comments 0 reactions 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/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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.