dtolnay / dtolnay/syn

Parse const blocks in path arguments

Open
#1,985 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

- Part of https://github.com/rust-lang/rust/issues/132980

Example: https://github.com/rust-lang/rust/blob/d39561c2d2b55985d3b6331cc52403e038e7fc8b/tests/ui/const-generics/mgca/higher-ranked-lts-good.rs#L10

```rust
fn foo()
where
T: Trait fn(&'a ()); 1 }>
{}
```

Example: https://github.com/rust-lang/rust/blob/d39561c2d2b55985d3b6331cc52403e038e7fc8b/tests/ui/traits/associated_type_bound/generic-const-args-default.rs#L6

```rust
trait Bar {}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the two linked Rust examples: tests/ui/const-generics/mgca/higher-ranked-lts-good.rs and tests/ui/traits/associated_type_bound/generic-const-args-default.rs, then trace syn's path-argument parsing entry point. Done means both const-block forms parse successfully without regressing existing path and generic-argument cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
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.