rust/clippy_lints
bors 665fd5219a Auto merge of #11872 - llogiq:test-attr-in-doctest, r=xFrednet
add lint against unit tests in doctests

During RustLab, Alice Ryhl brought to my attention that the Andoid team stumbled over the fact that if one attempts to write a unit test within a doctest, it will be summarily ignored. So this lint should help people wondering why their tests won't run.

---

changelog: New lint: [`test_attr_in_doctest`]
[#11872](https://github.com/rust-lang/rust-clippy/pull/11872)
2023-11-30 10:24:16 +00:00
..
src Auto merge of #11872 - llogiq:test-attr-in-doctest, r=xFrednet 2023-11-30 10:24:16 +00:00
Cargo.toml Bump Clippy version -> 0.1.76 2023-11-16 19:02:33 +01:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.