diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-11-04 09:19:34 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-11-04 14:24:41 +1100 |
| commit | d963686f5a87b9eaa2ac2bdc29ddb796e0e83f1f (patch) | |
| tree | c3c881e1570fcd5fe9a582c21c6f27dccd833790 /src/test/debuginfo/enum-thinlto.rs | |
| parent | a21c0458979d786d821c2d75a1b109fe38914da0 (diff) | |
| download | rust-d963686f5a87b9eaa2ac2bdc29ddb796e0e83f1f.tar.gz rust-d963686f5a87b9eaa2ac2bdc29ddb796e0e83f1f.zip | |
Refactor `cook_lexer_literal`.
It deals with eight cases: ints, floats, and the six quoted types (char/byte/strings). For ints and floats we have an early return, and the other six types fall through to the code at the end, which makes the function hard to read. This commit rearranges things to avoid the early returns.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
