Skip to content

Commit 6c9013d

Browse files
committed
Deny missing docs in rand_core
1 parent 8f3f57e commit 6c9013d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rand_core/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
3838
html_root_url = "https://docs.rs/rand_core/0.1.0")]
3939

40+
#![deny(missing_docs)]
4041
#![deny(missing_debug_implementations)]
42+
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
4143

4244
#![cfg_attr(not(feature="std"), no_std)]
4345
#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
@@ -107,6 +109,7 @@ pub mod le;
107109
/// A simple example, obviously not generating very *random* output:
108110
///
109111
/// ```rust
112+
/// #![allow(dead_code)]
110113
/// use rand_core::{RngCore, Error, impls};
111114
///
112115
/// struct CountingRng(u64);

0 commit comments

Comments
 (0)