about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-06 02:56:17 +0000
committerbors <bors@rust-lang.org>2017-06-06 02:56:17 +0000
commite8626951583e2cac46417ec433254a862735c0cc (patch)
tree5f38928427f2d56ff470cc6d5dad93e3e420da0d /src/test/run-pass/thinlto
parentae7920153331f26f2bc144f62082e95e74c2ba31 (diff)
parent0b8c3de678065b82ae955b65192b7927b467f7a6 (diff)
downloadrust-e8626951583e2cac46417ec433254a862735c0cc.tar.gz
rust-e8626951583e2cac46417ec433254a862735c0cc.zip
Auto merge of #41990 - qnighy:disallow-underscore-suffix-for-string-like-literals, r=nikomatsakis
Disallow underscore suffix for string-like literals.

This patch turns string/bytestring/char/byte literals followed by an underscore, like `"Foo"_`, to an error.

`scan_optional_raw_name` will parse `_` as a valid raw name, but it will be rejected by the parser. I also considered just stopping parsing when the suffix is `_`, but in that case `"Foo"_` will be lexed as two valid tokens.

Fixes the latter half of #41723.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions