Skip to content

Conversation

@Havvy
Copy link
Contributor

@Havvy Havvy commented Feb 7, 2018

This is #160 except I removed the ?s from visibility as they are extraneous.

brauliobz and others added 2 commits November 30, 2017 00:41
The visibility grammar already has `EMPTY` as an option.
Copy link
Contributor

@matthewjasper matthewjasper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. One thought I had, but I think this is fine either way.

> [IDENTIFIER] 
> [_Generics_]<sup>?</sup>
> [_WhereClause_]<sup>?</sup>
> ( `{` _StructFields_<sup>?</sup> `}` | `;` )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it help to have this match the text and split this into StructStruct and UnitStruct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I considered that when I first reviewed @brauliobz 's grammar and found a reason against it. Not sure anymore though. I'd rather not mess with the PR anymore than needed right now.

@matthewjasper matthewjasper merged commit 020dcab into rust-lang:master Feb 11, 2018
@matthewjasper
Copy link
Contributor

Thanks!

@Havvy Havvy deleted the struct-grammar branch February 19, 2018 08:33
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

Successfully merging this pull request may close these issues.

3 participants