about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-08-16 12:42:02 -0700
committerJosh Stone <jistone@redhat.com>2024-08-16 12:42:02 -0700
commit29017e45a1c85afe457765a5d4c77e4fcdebb4f6 (patch)
tree4df02e71af17c70ba458f9405c9a2bb6e7abfc4c /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parenta73bc4a131d94eba633c4c572a28e0bf94a67530 (diff)
downloadrust-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