Uh oh!
There was an error while loading. Please reload this page.
Attributes in generics position and general attributes improvements - #350
Conversation
| > **<sup>Syntax</sup>** | ||
| > _WhereClause_ : | ||
| > **<sup>Syntax</sup>** | ||
| > _WhereClause_ : |
There was a problem hiding this comment.
These spaces are needed for line breaks. They could be replaced with <br>s if you prefer.
There was a problem hiding this comment.
<br>s would be even more noisy. I'll just revert the removal.
| (C#). An attribute is a general, free-form metadatum that is interpreted | ||
| according to name, convention, and language and compiler version. Attributes | ||
| may appear as any of: | ||
| Any [item declaration] or [generic lifetime or type parameter][generics] may |
There was a problem hiding this comment.
Actually, this is a lot more complicated, because also enum variants, struct and union fields, match arms...
0599dd0 to
c363127Compare
|
c363127 to
56b9cb2CompareHavvy
commented
Jun 4, 2018
I retract the previous comment. I've removed the extra commits, and will be working on them in a separate PR. This includes adding the other places that attributes can be found. |
56b9cb2 to
05b0a98Compare05b0a98 to
3136dcaComparematthewjasper
commented
Jun 4, 2018
Thanks! |
Attributes in generics is stabilized in 1.27 as per rust-lang/rust#48851.
I moved the defining italics for attributes to the actual definition and gave inner/outer attributes actual definition lines instead of leaving it implied.
There's also a few newlines for 80 character style and removing trailing spaces in here.