Skip to content

Commit 282f4d0

Browse files
Prevent future errors in docs from going unnoticed
This is the same approach as used in stdlib https://github.com/rust-lang/rust/blob/e326e86b47edcded3313944a81f126a633032d86/src/libstd/lib.rs#L221 which I discovered via rust-lang/rust#41574.
1 parent 6fb3656 commit 282f4d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//! [mio]: https://github.com/carllerche/mio
1111
1212
#![warn(missing_docs)]
13+
#![doc(test(no_crate_inject, attr(deny(warnings))))]
1314
// TODO: Remove this when it's a hard error by default (error E0446).
1415
// See Rust issue #34537 <https://github.com/rust-lang/rust/issues/34537>
1516
#![deny(private_in_public)]

0 commit comments

Comments
 (0)