dtolnay / dtolnay/syn

Parse static closure coroutine syntax

Open
#2,019 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/43122

Example: https://github.com/rust-lang/rust/blob/a6050b7ea848e25289bf097c606e0611c58ef4f3/tests/ui/coroutine/size-moved-locals.rs

```rust
#[coroutine] static || { yield; };
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the requested `#[coroutine] static || { yield; };` syntax with Rust issue #43122 and the linked `tests/ui/coroutine/size-moved-locals.rs` example. Locate syn's coroutine and closure parsing entry points; done means this static coroutine closure parses successfully without regressing existing syntax.

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.