Bug 1319228 - Toggle allocator_api feature when building with rustc 1.28 draft
authorChris Manchester <cmanchester@mozilla.com>
Wed, 13 Jun 2018 15:37:41 -0700
changeset 807267 7b2101bc5d111faebf897c4398bb3701743220c3
parent 807266 b7f1dfb92aa6aeafff43a0e34ca26614157a5107
push id113060
push userbmo:cmanchester@mozilla.com
push dateWed, 13 Jun 2018 23:48:17 +0000
bugs1319228
milestone62.0a1
Bug 1319228 - Toggle allocator_api feature when building with rustc 1.28 MozReview-Commit-ID: 8OVlBMizTzX
toolkit/library/rust/shared/lib.rs
--- a/toolkit/library/rust/shared/lib.rs
+++ b/toolkit/library/rust/shared/lib.rs
@@ -1,15 +1,15 @@
 // This Source Code Form is subject to the terms of the Mozilla Public
 // 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/.
 
 #![cfg_attr(feature = "oom_with_global_alloc",
             feature(global_allocator, alloc, alloc_system, allocator_api))]
-#![cfg_attr(feature = "oom_with_hook", feature(oom_hook))]
+#![cfg_attr(feature = "oom_with_hook", feature(oom_hook, allocator_api))]
 
 #[cfg(feature="servo")]
 extern crate geckoservo;
 
 extern crate mp4parse_capi;
 extern crate nsstring;
 extern crate nserror;
 extern crate xpcom;