about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-03 16:21:51 +0000
committerbors <bors@rust-lang.org>2020-11-03 16:21:51 +0000
commit2fe87a89c9b37978b9589ce7930577f05aa91cb2 (patch)
tree6d7adfcee07e85013751c775136c9971c92bb82d /compiler/rustc_mir/src/transform/coverage/graph.rs
parenta2bf404d34529e2b916bdc514bd71309e86908bd (diff)
parent7b065dba84362ce90a7d9a920e193dc719198a9b (diff)
downloadrust-2fe87a89c9b37978b9589ce7930577f05aa91cb2.tar.gz
rust-2fe87a89c9b37978b9589ce7930577f05aa91cb2.zip
Auto merge of #6165 - dvermd:ref_option_ref, r=flip1995
Add lint 'ref_option_ref' #1377

This lint checks for usage of `&Option<&T>` which can be simplified as `Option<&T>` as suggested in #1377.

This WIP PR is here to get feedback on the lint as there's more cases to be handled:
* statics/consts,
* associated types,
* type alias,
* function/method parameter/return,
* ADT definitions (struct/tuple struct fields, enum variants)

changelog: Add 'ref_option_ref' lint
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions