rust/src/libsyntax
Jakub Bukaj f71b852d38 rollup merge of #19103: huonw/literal-suffixes
Futureproof Rust for fancier suffixed literals. The Rust compiler tokenises a literal followed immediately (no whitespace) by an identifier as a single token: (for example) the text sequences `"foo"bar`, `1baz` and `1u1024` are now a single token rather than the pairs `"foo"` `bar`, `1` `baz` and `1u` `1024` respectively.

The compiler rejects all such suffixes in the parser, except for the 12 numeric suffixes we have now.

I'm fairly sure this will affect very few programs, since it's not currently legal to have `<literal><identifier>` in a Rust program, except in a macro invocation. Any macro invocation relying on this behaviour can simply separate the two tokens with whitespace: `foo!("bar"baz)` becomes `foo!("bar" baz)`.

This implements [RFC 463](https://github.com/rust-lang/rfcs/blob/master/text/0463-future-proof-literal-suffixes.md), and so closes https://github.com/rust-lang/rust/issues/19088.
2014-11-19 22:41:05 +01:00
..
ast_map Feature gate non-ASCII lifetime identifiers 2014-11-18 23:07:14 +01:00
diagnostics Parse and store suffixes on literals. 2014-11-20 00:02:42 +11:00
ext rollup merge of #19103: huonw/literal-suffixes 2014-11-19 22:41:05 +01:00
parse rollup merge of #19103: huonw/literal-suffixes 2014-11-19 22:41:05 +01:00
print rollup merge of #19103: huonw/literal-suffixes 2014-11-19 22:41:05 +01:00
util libsyntax: Add tests for parse_view_item 2014-11-17 20:26:21 -07:00
abi.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
ast_util.rs Feature gate non-ASCII lifetime identifiers 2014-11-18 23:07:14 +01:00
ast.rs rollup merge of #19103: huonw/literal-suffixes 2014-11-19 22:41:05 +01:00
attr.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
codemap.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
config.rs
diagnostic.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
feature_gate.rs Feature gate non-ASCII lifetime identifiers 2014-11-18 23:07:14 +01:00
fold.rs Refactor QPath to take an ast::TraitRef 2014-11-19 05:53:40 -05:00
lib.rs Complete the removal of ty_nil, ast::LitNil, ast::TyBot and ast::TyUniq 2014-11-16 14:23:15 +01:00
owned_slice.rs
ptr.rs
show_span.rs
std_inject.rs
test.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
visit.rs rollup merge of #19073: jakub-/issue-19069 2014-11-19 22:39:12 +01:00