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

Commit e94ddd3

Browse files
committed
MAINT: Ignoring #[no_mangle] warnings we can remove that next rustc update
rust-lang/rust#60050
1 parent 55fa44a commit e94ddd3

File tree

11 files changed

+15
-6
lines changed

11 files changed

+15
-6
lines changed

eng-wasm/derive/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![feature(box_patterns)]
33
#![recursion_limit="128"]
44
#![feature(slice_concat_ext)]
5+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
6+
57

68
extern crate eng_wasm;
79
extern crate proc_macro2;

eng-wasm/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![no_std]
22
#![feature(slice_concat_ext)]
33
#![deny(unused_extern_crates)]
4+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
5+
46

57
/// Enigma implementation of bindings to the Enigma runtime.
68
/// This crate should be used in contracts.

enigma-core/enclave/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
#![crate_type = "staticlib"]
33
#![no_std]
44
#![cfg_attr(target_env = "sgx", feature(rustc_private))]
5+
56
#![warn(clippy::all)]
6-
#![allow(clippy::cast_ptr_alignment)] // TODO: Try to remove it when fixing the sealing
77
#![warn(unused_extern_crates)]
8+
#![allow(clippy::cast_ptr_alignment)] // TODO: Try to remove it when fixing the sealing
9+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
810

911
extern crate enigma_runtime_t;
1012
#[macro_use]

enigma-principal/enclave/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#![feature(slice_concat_ext)]
66

77
#![deny(unused_extern_crates)]
8+
#![allow(unused_attributes)] // https://github.com/rust-lang/rust/issues/60050
89

910
extern crate enigma_crypto;
1011
extern crate enigma_tools_m;

examples/eng_wasm_contracts/contract_with_eth_calls/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
23

34

45
extern crate eng_wasm;

examples/eng_wasm_contracts/erc20/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
2+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
33

44

55

examples/eng_wasm_contracts/millionaires_problem_demo/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
23

34

45

examples/eng_wasm_contracts/simple_addition/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// features of its host system: threads, networking, heap allocation, and others. SGX environments
33
// do not have these features, so we tell Rust that we don’t want to use the standard library
44
#![no_std]
5+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
56

67

78

examples/eng_wasm_contracts/simple_calculator/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
2+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
33

44

55

examples/eng_wasm_contracts/simplest/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
#![allow(unused_attributes)] // TODO: Remove on future nightly https://github.com/rust-lang/rust/issues/60050
23

34

45

examples/eng_wasm_contracts/voting_demo/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![no_std]
2-
3-
4-
2+
#![allow(unused_attributes)] // https://github.com/rust-lang/rust/issues/60050
53

64
extern crate eng_wasm;
75
extern crate eng_wasm_derive;

0 commit comments

Comments
 (0)