rust/src/libsyntax
bors e862695158 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.
2017-06-06 02:56:17 +00:00
..
diagnostics Add new error code 2017-05-30 19:19:34 +02:00
ext Extend the unused macro lint to macros 2.0 2017-05-31 17:03:41 +02:00
parse Auto merge of #41990 - qnighy:disallow-underscore-suffix-for-string-like-literals, r=nikomatsakis 2017-06-06 02:56:17 +00:00
print Hygienize lifetimes. 2017-05-25 05:52:09 +00:00
util Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov 2017-05-16 17:31:50 -06:00
abi.rs add thiscall calling convention support 2017-05-24 16:40:03 -04:00
ast.rs Hygienize lifetimes. 2017-05-25 05:52:09 +00:00
attr.rs Add an option to the parser to avoid parsing out of line modules 2017-05-18 11:03:07 +12:00
Cargo.toml fix the easy features in libsyntax 2017-05-07 01:20:15 -07:00
codemap.rs Use callsite's span for macro calls on suggestion 2017-05-31 23:48:19 -07:00
config.rs Fix some clippy warnings in libsyntax 2017-05-12 20:05:39 +02:00
diagnostic_list.rs Added feature gate, updated error messages and tests. 2017-04-21 07:37:10 +10:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Rollup merge of #42207 - Nashenas88:remove_fragment_info, r=eddyb 2017-05-27 20:54:00 -06:00
fold.rs Hygienize lifetimes. 2017-05-25 05:52:09 +00:00
json.rs Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov 2017-05-16 17:31:50 -06:00
lib.rs rustc: Remove #![unstable] annotation 2017-05-11 16:03:05 -07:00
ptr.rs Introduce HashStable trait and base ICH implementations on it. 2017-04-06 16:01:51 +02:00
show_span.rs annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor 2016-12-06 11:28:51 +01:00
std_inject.rs Hygienize librustc_resolve. 2017-05-25 05:51:50 +00:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Turn sufficiently old compatibility lints into hard errors 2017-05-30 22:00:30 +03:00
test_snippet.rs Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
tokenstream.rs Add an option to the parser to avoid parsing out of line modules 2017-05-18 11:03:07 +12:00
visit.rs Hygienize lifetimes. 2017-05-25 05:52:09 +00:00