Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
MAINT: Ignoring #[no_mangle] warnings we can remove that next rustc…
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed May 22, 2019
1 parent 55fa44a commit e94ddd3
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions eng-wasm/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions eng-wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion enigma-core/enclave/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions enigma-principal/enclave/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/eng_wasm_contracts/erc20/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]

#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![no_std]
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050



Expand Down
1 change: 1 addition & 0 deletions examples/eng_wasm_contracts/simple_addition/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
2 changes: 1 addition & 1 deletion examples/eng_wasm_contracts/simple_calculator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]

#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050



Expand Down
1 change: 1 addition & 0 deletions examples/eng_wasm_contracts/simplest/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![no_std]
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050



Expand Down
4 changes: 1 addition & 3 deletions examples/eng_wasm_contracts/voting_demo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit e94ddd3

Please sign in to comment.