Skip to content

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