You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jesse99 opened this issue
Nov 18, 2012
· 1 comment
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I find the EBNF rules in the manual rather hard to read. Here are a few problems:
Everything is space separated so there are no visual cues about what belongs with what. This is especially problematic with the * and ? meta-characters.
Single quotes are used for literal characters and double quotes for literal strings. There doesn't seem much point in this and using just single quotes would be less visually distracting.
It seems odd to use square brackets for grouping.
Some typographic conventions would be helpful. Maybe meta characters in bold.
For example compare:
vec_expr : '[' "mut" ? [ expr [ ',' expr ] + ] ? ']'
We're going to be completely replacing the grammar rules with rules extracted from a machine-checked grammar. Likely they'll be in whatever format the machine-checking tool uses. Closing this as WONTFIX; we may revisit typographic issues when the grammar gets refreshed.
Add lint `transmute_undefined_repr`
Partially implements rust-lang#3999 and rust-lang#546
This doesn't consider `enum`s at all right now as those are going to be a pain to deal with. This also allows `#[repr(Rust)]` structs with only one non-zero sized fields. I think those are technically undefined when transmuted.
changelog: Add lint `transmute_undefined_repr`
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I find the EBNF rules in the manual rather hard to read. Here are a few problems:
For example compare:
vec_expr : '[' "mut" ? [ expr [ ',' expr ] + ] ? ']'
with:
vec_expr : '[' 'mut'? ( expr ( ',' expr ) + ) ? ']'
(Too many spaces in the above because markdown gets confused with series of asterisks).
The text was updated successfully, but these errors were encountered: