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/liballoc | |
| 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/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/tests/slice.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 0493f92bc52..881607f65ba 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -96,7 +96,7 @@ #![feature(dropck_eyepatch)] #![feature(exact_size_is_empty)] #![feature(fmt_internals)] -#![feature(fn_must_use)] +#![cfg_attr(stage0, feature(fn_must_use))] #![feature(from_ref)] #![feature(fundamental)] #![feature(lang_items)] diff --git a/src/liballoc/tests/slice.rs b/src/liballoc/tests/slice.rs index 99d9c51efc7..6fd0b33f02a 100644 --- a/src/liballoc/tests/slice.rs +++ b/src/liballoc/tests/slice.rs @@ -1282,6 +1282,7 @@ fn test_box_slice_clone() { } #[test] +#[allow(unused_must_use)] // here, we care about the side effects of `.clone()` #[cfg_attr(target_os = "emscripten", ignore)] fn test_box_slice_clone_panics() { use std::sync::Arc; |
