Closed
Description
As of rustc 1.47.0-beta.1
, the private_doc_tests
lint is no longer working.
#![warn(private_doc_tests)]
/// hi!
/// ```
/// let x = 1;
/// ```
fn f() {}
I expected to see this happen: cargo doc
should issue warning: documentation test in private item
Instead, this happened: No warnings emitted.
This appears to have changed in #74855. I don't see any discussion there about this, so I'm guessing it was unintentional.
cc @jyn514.