about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-20 13:00:43 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-20 13:46:11 +1000
commit2a5487afb47aa01c7ee1446bae616bd2e34ec6ad (patch)
tree2b58b5607c6b33ff07a0366252b90eeb0078fa6a /compiler/rustc_llvm/llvm-wrapper
parentf6b57883e0cd4ba5f1bfd8d4484778c5852ce585 (diff)
downloadrust-2a5487afb47aa01c7ee1446bae616bd2e34ec6ad.tar.gz
rust-2a5487afb47aa01c7ee1446bae616bd2e34ec6ad.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions