From aaf0def241e40b44badedf97b113be49bb00df9e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 12 Mar 2018 14:09:34 -0700 Subject: [PATCH] Add lint overrides for unused `extern crate hashmap_core`. This allows these files to build with both the `no_std` and `std` features enabled at the same time. --- lib/cretonne/src/lib.rs | 1 + lib/wasm/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/cretonne/src/lib.rs b/lib/cretonne/src/lib.rs index 9656f6d1e1..29643d552f 100644 --- a/lib/cretonne/src/lib.rs +++ b/lib/cretonne/src/lib.rs @@ -9,6 +9,7 @@ #![cfg_attr(not(feature = "std"), feature(alloc))] // Include the `hashmap_core` crate if no_std +#[allow(unused_extern_crates)] #[cfg(feature = "no_std")] extern crate hashmap_core; #[cfg(not(feature = "std"))] diff --git a/lib/wasm/src/lib.rs b/lib/wasm/src/lib.rs index 4dc802d50f..a6492b5d66 100644 --- a/lib/wasm/src/lib.rs +++ b/lib/wasm/src/lib.rs @@ -20,6 +20,7 @@ #[macro_use] extern crate alloc; +#[allow(unused_extern_crates)] #[cfg(feature = "no_std")] extern crate hashmap_core;