From 202e45c2130c2bf6e1bdeff56706b3bc39bd9118 Mon Sep 17 00:00:00 2001 From: Lachlan Sneff Date: Thu, 12 Jul 2018 22:17:25 -0400 Subject: [PATCH] Fix broken build on no_std --- lib/codegen/src/lib.rs | 2 +- lib/native/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs index d4806f9665..f9ce64bcf8 100644 --- a/lib/codegen/src/lib.rs +++ b/lib/codegen/src/lib.rs @@ -119,6 +119,6 @@ mod std { pub use self::hashmap_core::map as hash_map; pub use self::hashmap_core::{HashMap, HashSet}; - pub use alloc::BTreeSet; + pub use alloc::collections::BTreeSet; } } diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index 1771c916e8..d0eec66679 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -12,7 +12,7 @@ cranelift-codegen = { path = "../codegen", version = "0.14.0", default-features target-lexicon = { version = "0.0.2", default-features = false } [target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] -raw-cpuid = "4" +raw-cpuid = "3.1.0" [features] default = ["std"]