Skip to content

Commit 8100f7f

Browse files
committed
librand: deny warnings in doctests
1 parent d93ed29 commit 8100f7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mk/tests.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system \
2626
alloc_jemalloc,$(TARGET_CRATES)) \
2727
collectionstest coretest
2828
TEST_DOC_CRATES = $(DOC_CRATES) arena flate fmt_macros getopts graphviz \
29-
log
29+
log rand
3030
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
3131
rustc_trans rustc_lint,\
3232
$(HOST_CRATES))

src/librand/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
2424
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2525
html_root_url = "https://doc.rust-lang.org/nightly/",
26-
html_playground_url = "https://play.rust-lang.org/")]
26+
html_playground_url = "https://play.rust-lang.org/",
27+
test(attr(deny(warnings))))]
2728
#![no_std]
2829
#![staged_api]
2930
#![unstable(feature = "rand",

0 commit comments

Comments
 (0)