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

Fix null exclusions in grammar docs #50791

Merged
merged 1 commit into from
May 18, 2018
Merged

Fix null exclusions in grammar docs #50791

merged 1 commit into from
May 18, 2018

Conversation

bstrie
Copy link
Contributor

@bstrie bstrie commented May 16, 2018

The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.

The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.
@rust-highfive
Copy link
Collaborator

r? @QuietMisdreavus

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 16, 2018
@QuietMisdreavus
Copy link
Member

Wait, can they? Can files processed by the compiler have inline null characters? I wouldn't be surprised if they could, but "inline nulls" is something that tends to break a lot of things.

@bstrie
Copy link
Contributor Author

bstrie commented May 17, 2018

@QuietMisdreavus I've tested this locally and the compiler happily accepts nulls in comments, char literals, and string literals. Whether or not this is intentional is another question, but in this day and age if a tool chokes on nulls I think that ought to be considered a bug in that tool. :)

@QuietMisdreavus
Copy link
Member

Works for me, thanks!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 17, 2018

📌 Commit ab4735e has been approved by QuietMisdreavus

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 17, 2018
@kennytm
Copy link
Member

kennytm commented May 17, 2018

@bstrie Could you check if the grammar at https://github.com/rust-lang-nursery/reference is also correct? (tracking issue over there: rust-lang/reference#84).

(I think this document is actually unmaintained and we'll eventually switch to rust-lang-nursery/reference)

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request May 17, 2018
Fix null exclusions in grammar docs

The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.
bors added a commit that referenced this pull request May 18, 2018
Rollup of 10 pull requests

Successful merges:

 - #50387 (Remove leftover tab in libtest outputs)
 - #50553 (Add Option::xor method)
 - #50610 (Improve format string errors)
 - #50649 (Tweak `nearest_common_ancestor()`.)
 - #50790 (Fix grammar documentation wrt Unicode identifiers)
 - #50791 (Fix null exclusions in grammar docs)
 - #50806 (Add `bless` x.py subcommand for easy ui test replacement)
 - #50818 (Speed up `opt_normalize_projection_type`)
 - #50837 (Revert #49767)
 - #50839 (Make sure people know the book is free oline)

Failed merges:
@bors bors merged commit ab4735e into rust-lang:master May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants