diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-03-13 11:53:36 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-03-13 13:57:39 +1100 |
| commit | f2fcfe82af65dd7a2fbc20ca082e1a6794918d0e (patch) | |
| tree | 70452cb956d0eff463c2eed045b9b926a660e665 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | e61dcc7a0ac33ef054d76453307124233edcf545 (diff) | |
| download | rust-f2fcfe82af65dd7a2fbc20ca082e1a6794918d0e.tar.gz rust-f2fcfe82af65dd7a2fbc20ca082e1a6794918d0e.zip | |
Various style improvements to `rustc_lint::levels`
- Replace some nested if-let with let-chains
- Tweak a match pattern to allow shorthand struct syntax
- Fuse an `is_empty` check with getting the last element
- Merge some common code that emits `MalformedAttribute` and continues
- Format `"{tool}::{name}"` in a way that's consistent with other match arms
- Replace if-let-else-panic with let-else
- Use early-exit to flatten a method body
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
