about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-11-04 09:19:34 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-11-04 14:24:41 +1100
commitd963686f5a87b9eaa2ac2bdc29ddb796e0e83f1f (patch)
treec3c881e1570fcd5fe9a582c21c6f27dccd833790 /src/test/debuginfo/enum-thinlto.rs
parenta21c0458979d786d821c2d75a1b109fe38914da0 (diff)
downloadrust-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