rust/compiler/rustc_ast/src
Nicholas Nethercote 2a5487afb4 Merge TokenStreamBuilder::push into TokenStreamBuilder::build.
Both functions do some modifying of streams using `make_mut`:
- `push` sometimes glues the first token of the next stream to the last
  token of the first stream.
- `build` appends tokens to the first stream.

By doing all of this in the one place, things are simpler. The first
stream can be modified in both ways (if necessary) in the one place, and
any next stream with the first token removed doesn't need to be stored.
2022-06-20 13:46:11 +10:00
..
attr Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
expand Make allocator_kind a query. 2021-06-20 11:52:51 +02:00
util Add do yeet expressions to allow experimentation in nightly 2022-04-30 17:40:27 -07:00
ast_traits.rs rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
ast.rs Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-14 14:52:01 +10:00
entry.rs Fix ICE when main is declared in an extern block 2021-06-09 23:14:02 -04:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
mut_visit.rs Merge crate and restricted visibilities 2022-05-21 17:02:55 -04:00
node_id.rs Use LocalExpnId where possible. 2021-07-17 19:41:02 +02:00
ptr.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
token.rs Revert #96682. 2022-06-02 11:22:16 +10:00
tokenstream.rs Merge TokenStreamBuilder::push into TokenStreamBuilder::build. 2022-06-20 13:46:11 +10:00
visit.rs Introduce LifetimeCtxt. 2022-05-20 12:25:05 +02:00