about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-13 18:04:20 +0000
committerbors <bors@rust-lang.org>2021-04-13 18:04:20 +0000
commit132b4e5d167b7e622fcc11fa2b67b931105b4de1 (patch)
tree2582b4a7be38c6cb43f13507fecfdd47877f5c02 /compiler/rustc_codegen_llvm/src/attributes.rs
parent5c1304205b7bc53a1e9f48cf286a60438351c1ab (diff)
parent28aed81f7d3c03aebfe23832593be9a1cb610257 (diff)
downloadrust-132b4e5d167b7e622fcc11fa2b67b931105b4de1.tar.gz
rust-132b4e5d167b7e622fcc11fa2b67b931105b4de1.zip
Auto merge of #84164 - LingMan:option_option, r=estebank
Avoid an `Option<Option<_>>`

By simply swapping the calls to `map` and `and_then` around the complexity of
handling an `Option<Option<_>>` disappears.

`@rustbot` modify labels +C-cleanup +T-compiler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions