diff --git a/eng-wasm/derive/src/lib.rs b/eng-wasm/derive/src/lib.rs index 62747111..547cda27 100755 --- a/eng-wasm/derive/src/lib.rs +++ b/eng-wasm/derive/src/lib.rs @@ -2,6 +2,8 @@ #![feature(box_patterns)] #![recursion_limit="128"] #![feature(slice_concat_ext)] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 + extern crate eng_wasm; extern crate proc_macro2; diff --git a/eng-wasm/src/lib.rs b/eng-wasm/src/lib.rs index 078f4b28..ee576d1b 100755 --- a/eng-wasm/src/lib.rs +++ b/eng-wasm/src/lib.rs @@ -1,6 +1,8 @@ #![no_std] #![feature(slice_concat_ext)] #![deny(unused_extern_crates)] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 + /// Enigma implementation of bindings to the Enigma runtime. /// This crate should be used in contracts. diff --git a/enigma-core/enclave/src/lib.rs b/enigma-core/enclave/src/lib.rs index 0103b8f8..2e5afdfc 100755 --- a/enigma-core/enclave/src/lib.rs +++ b/enigma-core/enclave/src/lib.rs @@ -2,9 +2,11 @@ #![crate_type = "staticlib"] #![no_std] #![cfg_attr(target_env = "sgx", feature(rustc_private))] + #![warn(clippy::all)] -#![allow(clippy::cast_ptr_alignment)] // TODO: Try to remove it when fixing the sealing #![warn(unused_extern_crates)] +#![allow(clippy::cast_ptr_alignment)] // TODO: Try to remove it when fixing the sealing +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 extern crate enigma_runtime_t; #[macro_use] diff --git a/enigma-principal/enclave/src/lib.rs b/enigma-principal/enclave/src/lib.rs index 535cc4ed..f3216b4f 100644 --- a/enigma-principal/enclave/src/lib.rs +++ b/enigma-principal/enclave/src/lib.rs @@ -5,6 +5,7 @@ #![feature(slice_concat_ext)] #![deny(unused_extern_crates)] +#![allow(unused_attributes)] // https://github.com/rust-lang/rust/issues/60050 extern crate enigma_crypto; extern crate enigma_tools_m; diff --git a/examples/eng_wasm_contracts/contract_with_eth_calls/src/lib.rs b/examples/eng_wasm_contracts/contract_with_eth_calls/src/lib.rs index f8745b8d..0747b5cc 100755 --- a/examples/eng_wasm_contracts/contract_with_eth_calls/src/lib.rs +++ b/examples/eng_wasm_contracts/contract_with_eth_calls/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 extern crate eng_wasm; diff --git a/examples/eng_wasm_contracts/erc20/src/lib.rs b/examples/eng_wasm_contracts/erc20/src/lib.rs index c4b34e74..2a91c31a 100755 --- a/examples/eng_wasm_contracts/erc20/src/lib.rs +++ b/examples/eng_wasm_contracts/erc20/src/lib.rs @@ -1,5 +1,5 @@ #![no_std] - +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 diff --git a/examples/eng_wasm_contracts/millionaires_problem_demo/src/lib.rs b/examples/eng_wasm_contracts/millionaires_problem_demo/src/lib.rs index 7a765afc..a5764c9e 100644 --- a/examples/eng_wasm_contracts/millionaires_problem_demo/src/lib.rs +++ b/examples/eng_wasm_contracts/millionaires_problem_demo/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 diff --git a/examples/eng_wasm_contracts/simple_addition/src/lib.rs b/examples/eng_wasm_contracts/simple_addition/src/lib.rs index 0c2786d8..be9eb461 100755 --- a/examples/eng_wasm_contracts/simple_addition/src/lib.rs +++ b/examples/eng_wasm_contracts/simple_addition/src/lib.rs @@ -2,6 +2,7 @@ // features of its host system: threads, networking, heap allocation, and others. SGX environments // do not have these features, so we tell Rust that we don’t want to use the standard library #![no_std] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 diff --git a/examples/eng_wasm_contracts/simple_calculator/src/lib.rs b/examples/eng_wasm_contracts/simple_calculator/src/lib.rs index afd3f2f5..cd05f700 100755 --- a/examples/eng_wasm_contracts/simple_calculator/src/lib.rs +++ b/examples/eng_wasm_contracts/simple_calculator/src/lib.rs @@ -1,5 +1,5 @@ #![no_std] - +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 diff --git a/examples/eng_wasm_contracts/simplest/src/lib.rs b/examples/eng_wasm_contracts/simplest/src/lib.rs index 28f9c4c4..d0984868 100755 --- a/examples/eng_wasm_contracts/simplest/src/lib.rs +++ b/examples/eng_wasm_contracts/simplest/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050 diff --git a/examples/eng_wasm_contracts/voting_demo/src/lib.rs b/examples/eng_wasm_contracts/voting_demo/src/lib.rs index b6c37c87..cd99b768 100644 --- a/examples/eng_wasm_contracts/voting_demo/src/lib.rs +++ b/examples/eng_wasm_contracts/voting_demo/src/lib.rs @@ -1,7 +1,5 @@ #![no_std] - - - +#![allow(unused_attributes)] // https://github.com/rust-lang/rust/issues/60050 extern crate eng_wasm; extern crate eng_wasm_derive;