diff options
| author | Josh Stone <jistone@redhat.com> | 2024-08-16 12:42:02 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-08-16 12:42:02 -0700 |
| commit | 29017e45a1c85afe457765a5d4c77e4fcdebb4f6 (patch) | |
| tree | 4df02e71af17c70ba458f9405c9a2bb6e7abfc4c /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | a73bc4a131d94eba633c4c572a28e0bf94a67530 (diff) | |
| download | rust-29017e45a1c85afe457765a5d4c77e4fcdebb4f6.tar.gz rust-29017e45a1c85afe457765a5d4c77e4fcdebb4f6.zip | |
mir/pretty: use `Option` instead of `Either<Once, Empty>`
`Either` is wasteful for a one-or-none iterator, especially since `Once` is already an `option::IntoIter` internally. We don't really need any of the iterator mechanisms in this case, just a single conditional insert.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
