diff options
| author | bors <bors@rust-lang.org> | 2018-04-30 22:02:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-30 22:02:33 +0000 |
| commit | 357bf00f1c0ee065239ee0213b854ee65f44eb03 (patch) | |
| tree | 4769114d678a6150b43718a2d595a0bdad894e72 /src/libstd/sync | |
| parent | 17841cc97ac950312355403b6cfe11b916e242a6 (diff) | |
| parent | 3dbdccc6a9c1ead58325d415381b25c676386c34 (diff) | |
| download | rust-357bf00f1c0ee065239ee0213b854ee65f44eb03.tar.gz rust-357bf00f1c0ee065239ee0213b854ee65f44eb03.zip | |
Auto merge of #48925 - zackmdavis:fn_must_stabilize, r=nikomatsakis
stabilize `#[must_use]` for functions and must-use comparison operators (RFC 1940) r? @nikomatsakis
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>(); |
