aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-12 00:28:50 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-13 11:10:16 +0200
commit57709dc0bf57d8042b1e57c6281c9cd4a6f6feb1 (patch)
tree42579af334223a4ce005fe67df55110076ee2889 /components/msg/lib.rs
parentc4bf3ec14f01c4ff2660f2b870a936b4302da394 (diff)
downloadservo-57709dc0bf57d8042b1e57c6281c9cd4a6f6feb1.tar.gz
servo-57709dc0bf57d8042b1e57c6281c9cd4a6f6feb1.zip
Use the new nonzero crate in the msg crate
Diffstat (limited to 'components/msg/lib.rs')
-rw-r--r--components/msg/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/msg/lib.rs b/components/msg/lib.rs
index 0876603c1a5..b1743ad02a9 100644
--- a/components/msg/lib.rs
+++ b/components/msg/lib.rs
@@ -2,16 +2,16 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#![feature(const_fn)]
-#![feature(const_nonzero_new)]
-#![feature(nonzero)]
+#![cfg_attr(feature = "unstable", feature(nonzero))]
+#![cfg_attr(feature = "unstable", feature(const_fn))]
+#![cfg_attr(feature = "unstable", feature(const_nonzero_new))]
#![deny(unsafe_code)]
#[macro_use]
extern crate bitflags;
-extern crate core;
#[macro_use] extern crate heapsize;
#[macro_use] extern crate heapsize_derive;
+extern crate nonzero;
#[macro_use] extern crate serde;
extern crate webrender_api;