dtolnay / dtolnay/syn

enum variants should have modifiers

Open
#2,055 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

as I mentioned on the thread asking for what new features to add to syn on rust internals, [enum variant/field visibility has been proposed](https://internals.rust-lang.org/t/crowdsourcing-request-what-syntax-changes-that-will-affect-the-ast-are-currently-in-flight/24361/10?u=programmerjake). is it too late to adjust 3.x to allow adding a non-exhaustive modifiers struct to enum variants, just like the other modifiers structs?

maybe publish 4.0 soon? it would be nice to not have to wait another 3 years.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start by reviewing how syn represents enum variants and its existing modifier structs, then compare that design with the linked Rust syntax proposal. Done means reaching a maintainer-approved scope for supporting non-exhaustive variant modifiers and clarifying the compatible release target.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.