about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-12-01 00:13:17 +0000
committerbors <bors@rust-lang.org>2019-12-01 00:13:17 +0000
commite47ae20b5b480d09c7d6abced3e16478b0684190 (patch)
treecd997db4fa57487c570a9d8dbc3f0862430bca91 /clippy_lints/src/mutable_debug_assertion.rs
parentb561b6c6e8e5b3fe19279d558834bdd2e71005d5 (diff)
parentef7587d9576a47f3b58a8153458d3f5d28e50557 (diff)
downloadrust-e47ae20b5b480d09c7d6abced3e16478b0684190.tar.gz
rust-e47ae20b5b480d09c7d6abced3e16478b0684190.zip
Auto merge of #4866 - rust-lang:needful-doctest-main, r=flip1995
Less needless_doctest_main false positives

This checks if a) the `fn main() {}` function is empty or if the doctest contains a `static`. In both cases don't lint. While this fixes #4858 at the cost of some false negatives, but this seems a better solution than disabling the lint outright. In the long run, using `syn` should solve the issue in the right way.

changelog: none
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
0 files changed, 0 insertions, 0 deletions