On 11/10/25 5:38 AM, Gary Guo wrote:
On Mon, 10 Nov 2025 11:53:16 +0000 Alice Ryhl aliceryhl@google.com wrote:
...
-//! # #![expect(unreachable_pub, clippy::disallowed_names)] +//! # #![expect(clippy::disallowed_names)]
Maybe we should also allow disallowed_names in doc tests?
Alice
+1 on allowing disallowed_names. I think for doc tests we should try to reduce false positives to make it easier to write them. We shouldn't try to enable all clippy lints on doc tests, especially that clippy doesn't run today on rustdocs at all.
Best, Gary
After learning about disallowed_names ("foo", "bar" and others that are in fact classical documentation favorites), I also think it would be very nice to allow those in documentation.
thanks,