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

Disallow char literals which should be escaped #9335

Merged
merged 1 commit into from
Sep 25, 2013

Conversation

alexcrichton
Copy link
Member

As documented in issue #7945, these literal identifiers are all accepted by rust
today, but they should probably be disallowed (especially '''). This changes
all escapable sequences to being required to be escaped.

Closes #7945

I wanted to write the tests with more exact spans, but I think #9308 will be fixing that?

@lilyball
Copy link
Contributor

I think this is a good idea.

@huonw
Copy link
Member

huonw commented Sep 20, 2013

Needs a rebase.

@alexcrichton
Copy link
Member Author

Rebased, and the tests now have accurate spans as well (yay!)

As documented in issue rust-lang#7945, these literal identifiers are all accepted by rust
today, but they should probably be disallowed (especially `'''`). This changes
all escapable sequences to being *required* to be escaped.

Closes rust-lang#7945
bors added a commit that referenced this pull request Sep 25, 2013
As documented in issue #7945, these literal identifiers are all accepted by rust
today, but they should probably be disallowed (especially `'''`). This changes
all escapable sequences to being *required* to be escaped.

Closes #7945

I wanted to write the tests with more exact spans, but I think #9308 will be fixing that?
@bors bors closed this Sep 25, 2013
@bors bors merged commit 2661b63 into rust-lang:master Sep 25, 2013
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.

Invalid char literals are accepted
4 participants