From 969fcfb97f0b223df593cfe35cc60df7ff61f4e2 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Sat, 25 Aug 2018 12:59:52 +0300 Subject: [PATCH] Minor fixes for nightly 2018-08-18 (#600) * Don't use --export-table anymore Because it was turned on by default in the recent nightlies. See https://github.com/rust-lang/rust/pull/53237 * use_extern_macros stabilization With recent nightlies rustc produces a warning ``` the feature `use_extern_macros` has been stable since 1.30.0 and no longer requires an attribute to enable ``` --- substrate/substrate/executor/wasm/build.sh | 2 +- substrate/substrate/runtime-std/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/substrate/substrate/executor/wasm/build.sh b/substrate/substrate/executor/wasm/build.sh index 66064f6f06..ab71864481 100755 --- a/substrate/substrate/executor/wasm/build.sh +++ b/substrate/substrate/executor/wasm/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -RUSTFLAGS="-C link-arg=--export-table" cargo +nightly build --target=wasm32-unknown-unknown --release +cargo +nightly build --target=wasm32-unknown-unknown --release for i in test do wasm-gc target/wasm32-unknown-unknown/release/runtime_$i.wasm target/wasm32-unknown-unknown/release/runtime_$i.compact.wasm diff --git a/substrate/substrate/runtime-std/src/lib.rs b/substrate/substrate/runtime-std/src/lib.rs index 64267b23d0..b3d7c4530c 100644 --- a/substrate/substrate/runtime-std/src/lib.rs +++ b/substrate/substrate/runtime-std/src/lib.rs @@ -21,7 +21,6 @@ #![cfg_attr(not(feature = "std"), feature(panic_implementation))] #![cfg_attr(not(feature = "std"), feature(core_intrinsics))] #![cfg_attr(not(feature = "std"), feature(alloc))] -#![cfg_attr(not(feature = "std"), feature(use_extern_macros))] #![cfg_attr(feature = "std", doc = "Polkadot runtime standard library as compiled when linked with Rust's standard library.")] #![cfg_attr(not(feature = "std"), doc = "Polkadot's runtime standard library as compiled without Rust's standard library.")]