about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-06 18:52:18 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-07 17:54:34 -0700
commitba402312fed8134a9919bbb79bcd9978b92e4dee (patch)
tree632e99d9adc3ca92950a86f1b4ba97426057bfce /src/libstd/thread
parent179719d45023e549a62ec7a584d554408c6d241d (diff)
downloadrust-ba402312fed8134a9919bbb79bcd9978b92e4dee.tar.gz
rust-ba402312fed8134a9919bbb79bcd9978b92e4dee.zip
std: Deny most warnings in doctests
Allow a few specific ones but otherwise this helps ensure that our examples are
squeaky clean!

Closes #18199
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 5fe6e80d6e9..cd480f8c29e 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -99,6 +99,7 @@
 //! `println!` and `panic!` for the child thread:
 //!
 //! ```rust
+//! # #![allow(unused_must_use)]
 //! use std::thread;
 //!
 //! thread::Builder::new().name("child1".to_string()).spawn(move || {