diff options
| author | bors <bors@rust-lang.org> | 2019-12-01 00:13:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-01 00:13:17 +0000 |
| commit | e47ae20b5b480d09c7d6abced3e16478b0684190 (patch) | |
| tree | cd997db4fa57487c570a9d8dbc3f0862430bca91 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | b561b6c6e8e5b3fe19279d558834bdd2e71005d5 (diff) | |
| parent | ef7587d9576a47f3b58a8153458d3f5d28e50557 (diff) | |
| download | rust-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
