Skip to content

Commit fb27172

Browse files
committed
libtest: deny warnings in doctests
1 parent 50173f2 commit fb27172

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 rand rbml serialize syntax term
29+
log rand rbml serialize syntax term test
3030
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
3131
rustc_trans rustc_lint,\
3232
$(HOST_CRATES))

src/libtest/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
#![crate_type = "dylib"]
3333
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
3434
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
35-
html_root_url = "https://doc.rust-lang.org/nightly/")]
35+
html_root_url = "https://doc.rust-lang.org/nightly/",
36+
test(attr(deny(warnings))))]
3637

3738
#![feature(asm)]
3839
#![feature(box_syntax)]

0 commit comments

Comments
 (0)