diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-27 15:04:18 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-27 17:48:15 +1000 |
| commit | 207cec017f7ba30a15ab6faf60f28f6e027400a4 (patch) | |
| tree | 1dd06701f31ac7c1f9f4654354480e68b65978c5 /compiler/rustc_codegen_llvm/src | |
| parent | 458d4dae845ec155b285681a5b88305641abb868 (diff) | |
| download | rust-207cec017f7ba30a15ab6faf60f28f6e027400a4.tar.gz rust-207cec017f7ba30a15ab6faf60f28f6e027400a4.zip | |
Clean up `with_task`.
Currently it creates an `Option` and then does `map`/`unwrap_or` and `map_or_else` on it, which is hard to read. This commit simplifies things by moving more code into the two arms of the if/else.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
