Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to mark specific entries to be ignored? #16

Open
Keavon opened this issue Jan 12, 2022 · 2 comments
Open

Is it possible to mark specific entries to be ignored? #16

Keavon opened this issue Jan 12, 2022 · 2 comments

Comments

@Keavon
Copy link

Keavon commented Jan 12, 2022

I'd like to have a set of enum variants live at the top, with the subsequent ones alphabetized. It is possible to tag those variants to be ignored (so they can go anywhere)?

@Keavon
Copy link
Author

Keavon commented Jan 16, 2022

Ideally something like #[remain::ignore] or #[remain:here] would be nice to place above items that I want to stay put. That's especially important for match blocks that need to match a default case at the end.

@Keavon
Copy link
Author

Keavon commented Jan 16, 2022

This apparently already exists as #[remain::unsorted] but it's undocumented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant