Skip to content

Commit 50173f2

Browse files
committed
libterm: deny warnings in doctests
1 parent ba24a03 commit 50173f2

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

src/libterm/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5454
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
5555
html_root_url = "https://doc.rust-lang.org/nightly/",
56-
html_playground_url = "https://play.rust-lang.org/")]
56+
html_playground_url = "https://play.rust-lang.org/",
57+
test(attr(deny(warnings))))]
5758
#![deny(missing_docs)]
5859

5960
#![feature(box_syntax)]

0 commit comments

Comments
 (0)