rust/src/test
bors 1764b29725 Auto merge of #60679 - petrochenkov:lit2, r=matklad
Keep original literal tokens in AST

The original literal tokens (`token::Lit`) are kept in AST until lowering to HIR.

The tokens are kept together with their lowered "semantic" representation (`ast::LitKind`), so the size of `ast::Lit` is increased (this also increases the size of meta-item structs used for processing built-in attributes).
However, the size of `ast::Expr` stays the same.

The intent is to remove the "semantic" representation from AST eventually and keep literals as tokens until lowering to HIR (at least), and I'm going to work on that, but it would be good to land this sooner to unblock progress on the [lexer refactoring](https://github.com/rust-lang/rust/pull/59706).

Fixes a part of https://github.com/rust-lang/rust/issues/43081 (literal tokens that are passed to proc macros are always precise, including hexadecimal numbers, strings with their original escaping, etc)
Fixes a part of https://github.com/rust-lang/rust/issues/60495 (everything except for proc macro API doesn't need escaping anymore)
This also allows to eliminate a certain hack from the lexer (https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/pretty-printing.20comments/near/165005357).

cc @matklad
2019-05-12 17:44:06 +00:00
..
assembly Remove double trailing newlines 2019-04-22 16:57:01 +01:00
auxiliary
codegen choose a more specific LLVM target on OS X when necessary 2019-05-07 11:09:39 -04:00
codegen-units Remove unnecessary ignore-tidy-linelength 2019-04-23 11:42:14 +01:00
compile-fail Stabilize futures_api 2019-04-23 16:13:53 -07:00
debuginfo Address review comments 2019-05-03 19:25:35 -07:00
incremental Auto merge of #59288 - Centril:hir-if-to-match, r=oli-obk 2019-05-10 22:58:52 +00:00
mir-opt Adjust mir-opt tests for new HIR without If 2019-05-10 19:41:10 +02:00
pretty rustc: pass Option<&Substs> and Namespace around in ty::item_path. 2019-03-15 13:25:10 +02:00
run-fail Remove double trailing newlines 2019-04-22 16:57:01 +01:00
run-make Make tests compatible with musl host 2019-05-10 16:12:47 +02:00
run-make-fulldeps Make tests compatible with musl host 2019-05-10 16:12:47 +02:00
run-pass Auto merge of #60244 - SimonSapin:dangling, r=oli-obk 2019-05-12 14:32:11 +00:00
run-pass-fulldeps Use sysroot libserialize in newtype_index test 2019-04-21 15:58:06 +02:00
run-pass-valgrind
rustdoc use span instead of div for since version 2019-05-03 12:55:31 -04:00
rustdoc-js Auto merge of #59910 - Centril:rollup-yjv7b06, r=Centril 2019-04-12 11:46:01 +00:00
rustdoc-js-std Rename rustdoc js test suites 2019-02-25 17:46:06 +01:00
rustdoc-ui Rollup merge of #60220 - euclio:rustdoc-test-fatal-parsing-errors, r=QuietMisdreavus 2019-05-03 16:24:54 +02:00
rustfix
ui Auto merge of #60679 - petrochenkov:lit2, r=matklad 2019-05-12 17:44:06 +00:00
ui-fulldeps Update *.stderr files 2019-04-28 21:19:26 +02:00
COMPILER_TESTS.md