about summary refs log tree commit diff
path: root/src/rustllvm/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNick Torres <nickrtorres@icloud.com>2020-04-03 23:59:52 -0700
committerNick Torres <nickrtorres@icloud.com>2020-04-04 03:17:13 -0700
commit91d8a804d34b44a414b02ea5eba5305573748fff (patch)
tree908265340c42d09c451b1baa5a42e455aef8074c /src/rustllvm/CoverageMappingWrapper.cpp
parent7907abea272bbf97812683ce03a1ab9c22f0557b (diff)
downloadrust-91d8a804d34b44a414b02ea5eba5305573748fff.tar.gz
rust-91d8a804d34b44a414b02ea5eba5305573748fff.zip
result_map_or_into_option: add lint to catch manually adpating Result -> Option
Result<T, E> has an `ok()` method that adapts a Result<T,E> into an Option<T>.
It's possible to get around this adapter by writing Result<T,E>.map_or(None, Some).

This lint is implemented as a new variant of the existing
[`option_map_none` lint](https://github.com/rust-lang/rust-clippy/pull/2128)
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions