From ddfdd091bacba79cce84d4bcb0a31fd5d3ae4796 Mon Sep 17 00:00:00 2001 From: h4x3rotab Date: Tue, 10 Dec 2019 17:31:02 +0800 Subject: [PATCH] Wrong feature name `disable_allocator` in sr-io (#4342) This fixes the inconsistency: - Cargo.toml: `disable_allocator` - lib.rs: `disable_global_allocator` --- substrate/primitives/sr-io/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/primitives/sr-io/src/lib.rs b/substrate/primitives/sr-io/src/lib.rs index ad92b01964..b232bfd914 100644 --- a/substrate/primitives/sr-io/src/lib.rs +++ b/substrate/primitives/sr-io/src/lib.rs @@ -750,7 +750,7 @@ pub trait Sandbox { #[cfg(not(feature = "std"))] struct WasmAllocator; -#[cfg(all(not(feature = "disable_global_allocator"), not(feature = "std")))] +#[cfg(all(not(feature = "disable_allocator"), not(feature = "std")))] #[global_allocator] static ALLOCATOR: WasmAllocator = WasmAllocator;