diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-31 15:53:46 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-02 10:04:00 +1000 |
| commit | 203cba76e07c87c4e665b2e78ca0358b5a72e86a (patch) | |
| tree | e19b3afd4ef8a53d8c12e37298e814b021525470 /compiler/rustc_codegen_gcc | |
| parent | db7b07aa028b65b4d85610e81fecb0d2382b8c76 (diff) | |
| download | rust-203cba76e07c87c4e665b2e78ca0358b5a72e86a.tar.gz rust-203cba76e07c87c4e665b2e78ca0358b5a72e86a.zip | |
Only call `parse_token_tree` once.
This code currently uses a `while` loop and gathers token trees into a vector, but it only succeeds in the case where there is a single token tree. We can instead just call `parse_token_tree` once and then look for `Eof` to detect the success case.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
