rust/compiler/rustc_errors
Nicholas Nethercote 66e9b1149c Rearrange TokenTreesReader::parse_token_tree.
`parse_token_tree` is basically a match with four arms: `Eof`,
`OpenDelim`, `CloseDelim`, and "other". It has two call sites, and at
each call site one of the arms is unreachable. It's also not inlined.

This commit removes `parse_token_tree` by splitting it into four
functions and inlining them. This avoids some repeated conditional
tests and also some non-inlined function calls on the hot path.
2022-09-26 08:28:45 +10:00
..
src Rearrange TokenTreesReader::parse_token_tree. 2022-09-26 08:28:45 +10:00
Cargo.toml translations(rustc_session): migrate output.rs 2022-09-10 08:19:17 +02:00