diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-03-10 16:23:28 -0800 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-04-28 20:32:49 -0700 |
| commit | 3dbdccc6a9c1ead58325d415381b25c676386c34 (patch) | |
| tree | e2d36c4e257ccb3f601d9860fafec5d42e64ea28 /src/libstd/sync | |
| parent | c659faba8d8a7e21eeddbf446c9101bb945e9f0c (diff) | |
| download | rust-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.rs | 2 |
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>(); |
