dtolnay / dtolnay/syn

Parse final associated function syntax

Open
#1,981 1 comment 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/131179

Example: https://github.com/rust-lang/rust/blob/d39561c2d2b55985d3b6331cc52403e038e7fc8b/library/core/src/io/size_hint.rs#L43

```rust
pub trait SizeHint {
final fn size_hint(&self) -> (usize, Option) {
(self.lower_bound(), self.upper_bound())
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Rust reference example in library/core/src/io/size_hint.rs and the linked Rust issue 131179, then trace how syn handles associated functions in traits. Done means syn accepts the shown final fn syntax and has coverage for it.

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
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.