librand: deny warnings in doctests

This commit is contained in:
Kevin Butler 2015-11-03 16:04:40 +00:00
parent d28d000ef9
commit 86c55e7d99
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@ TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system libc \
alloc_jemalloc,$(TARGET_CRATES)) \ alloc_jemalloc,$(TARGET_CRATES)) \
collectionstest coretest collectionstest coretest
TEST_DOC_CRATES = $(DOC_CRATES) arena flate fmt_macros getopts graphviz \ TEST_DOC_CRATES = $(DOC_CRATES) arena flate fmt_macros getopts graphviz \
log log rand
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \ TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
rustc_trans rustc_lint,\ rustc_trans rustc_lint,\
$(HOST_CRATES)) $(HOST_CRATES))

View file

@ -23,7 +23,8 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico", html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/", html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/")] html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![no_std] #![no_std]
#![staged_api] #![staged_api]
#![unstable(feature = "rand", #![unstable(feature = "rand",