This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Fix where on struct declarations#137
Open
Xt-8 wants to merge 4 commits intozargony:masterfrom
Xt-8:tuple-struct-where
Open
Fix where on struct declarations#137Xt-8 wants to merge 4 commits intozargony:masterfrom Xt-8:tuple-struct-where
Xt-8 wants to merge 4 commits intozargony:masterfrom
Xt-8:tuple-struct-where
Conversation
Add dedicated struct declaration that fixes `where` clause at the end of tuple structs. Also adds type highlighting to `where` on normal structs to match `where` on `impl`.
Owner
|
Nice work, thanks! Would this also apply to |
Author
|
It was for fixing where on tuple struct specifically. I think the where clause works on enums already, and I don't believe there is a tuple enum. I haven't been using rust for a bit however, so I can't be sure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add dedicated struct declaration that fixes
whereclause at the end oftuple structs. Also adds type highlighting to
whereon normal structsto match
whereonimpl.#131
Edit:
And by this I mean it highlights the types after a struct's where.