diff options
| author | bors <bors@rust-lang.org> | 2019-05-12 17:44:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-12 17:44:06 +0000 |
| commit | 1764b29725df66183059f406c8c65edf642bbd43 (patch) | |
| tree | 3a4dca92cceba00645c5a8f29c9f4d36b06cd61c /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 0df1e57991e34825697b1659732c0716e7508519 (diff) | |
| parent | 83ed781c017632d48746553bdb2bf3d1633d5ca4 (diff) | |
| download | rust-1764b29725df66183059f406c8c65edf642bbd43.tar.gz rust-1764b29725df66183059f406c8c65edf642bbd43.zip | |
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
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
