about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-16 01:08:13 +0000
committerbors <bors@rust-lang.org>2018-08-16 01:08:13 +0000
commit6c712b149229a7968ca2bd56d92241e1ba13dda7 (patch)
treee836a4915b31b2f54aaa6e7164b962c00b2d2287 /src/test/incremental/thinlto
parentd767ee11616390d128853a06f5addb619e79213f (diff)
parent40d9bd014707ae82972509f5da9b7478eb2a9709 (diff)
downloadrust-6c712b149229a7968ca2bd56d92241e1ba13dda7.tar.gz
rust-6c712b149229a7968ca2bd56d92241e1ba13dda7.zip
Auto merge of #53289 - ljedrz:improve_lexer, r=michaelwoerister
A few cleanups and minor improvements for the lexer

- improve readability by adjusting the formatting of some function signatures and adding some newlines
- reorder some functions for easier reading
- remove redundant `'static` in `const`s
- remove some explicit `return`s
- read directly to a `String` in `gather_comments_and_literals`
- change `unwrap_or!` (macro) to `unwrap_or` (function)
- move an `assert!`ion from `try_next_token` (called in a loop) to `try_real_token` after all calls to `try_next_token`
- `#[inline]` some one-liner functions
- assign directly from an `if-else` expression
- refactor a `match` to `map_or`
- add a `token::is_irrelevant` function to detect tokens that are not "`real`"
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions