Skip to content

Commit e3976cd

Browse files
committed
libfmt_macros: deny warnings in doctests
1 parent 0226fa1 commit e3976cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $(eval $(call RUST_CRATE,collectionstest))
2525
TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system libc \
2626
alloc_jemalloc,$(TARGET_CRATES)) \
2727
collectionstest coretest
28-
TEST_DOC_CRATES = $(DOC_CRATES) arena flate
28+
TEST_DOC_CRATES = $(DOC_CRATES) arena flate fmt_macros
2929
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
3030
rustc_trans rustc_lint,\
3131
$(HOST_CRATES))

src/libfmt_macros/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2525
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2626
html_root_url = "https://doc.rust-lang.org/nightly/",
27-
html_playground_url = "https://play.rust-lang.org/")]
27+
html_playground_url = "https://play.rust-lang.org/",
28+
test(attr(deny(warnings))))]
2829

2930
#![feature(staged_api)]
3031
#![feature(unicode)]

0 commit comments

Comments
 (0)