about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2018-03-10 16:23:28 -0800
committerZack M. Davis <code@zackmdavis.net>2018-04-28 20:32:49 -0700
commit3dbdccc6a9c1ead58325d415381b25c676386c34 (patch)
treee2d36c4e257ccb3f601d9860fafec5d42e64ea28 /src/libstd/sync
parentc659faba8d8a7e21eeddbf446c9101bb945e9f0c (diff)
downloadrust-3dbdccc6a9c1ead58325d415381b25c676386c34.tar.gz
rust-3dbdccc6a9c1ead58325d415381b25c676386c34.zip
stabilize `#[must_use]` for functions and must-use operators
This is in the matter of RFC 1940 and tracking issue #43302.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpsc/select.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs
index a9f3cea243f..9310dad9172 100644
--- a/src/libstd/sync/mpsc/select.rs
+++ b/src/libstd/sync/mpsc/select.rs
@@ -518,6 +518,7 @@ mod tests {
         }
     }
 
+    #[allow(unused_must_use)]
     #[test]
     fn cloning() {
         let (tx1, rx1) = channel::<i32>();
@@ -540,6 +541,7 @@ mod tests {
         tx3.send(()).unwrap();
     }
 
+    #[allow(unused_must_use)]
     #[test]
     fn cloning2() {
         let (tx1, rx1) = channel::<i32>();