Parse const blocks in path arguments
- 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