diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-06-07 12:08:38 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-06-10 10:04:25 +1000 |
| commit | 35b5f4377028e34dc4df1ce67c225d2926c6c7a7 (patch) | |
| tree | a793a51b7fc0b78a031842344318e77190cf3b31 /src/test/ui/thinlto | |
| parent | d132f544f9d74e3cc047ef211e57eae60b78e5c5 (diff) | |
| download | rust-35b5f4377028e34dc4df1ce67c225d2926c6c7a7.tar.gz rust-35b5f4377028e34dc4df1ce67c225d2926c6c7a7.zip | |
Special-case literals in `parse_bottom_expr`.
This makes parsing faster, particularly for code with large constants, for two reasons: - it skips all the keyword comparisons for literals; - it replaces the unnecessary `parse_literal_maybe_minus` call with `parse_lit`, avoiding an unnecessary allocation via `mk_expr`.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
