This commit is contained in:
bjorn3
2019-09-28 16:09:57 +02:00
committed by Dan Gohman
parent 9037e7a601
commit c274d81b5b
3 changed files with 5 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
//! # fn main() {
//! use cranelift_codegen::isa;
//! use cranelift_codegen::settings::{self, Configurable};
//! use alloc::str::FromStr;
//! use std::str::FromStr;
//! use target_lexicon::Triple;
//!
//! let shared_builder = settings::builder();

View File

@@ -42,6 +42,8 @@
)]
#![no_std]
#[allow(unused_imports)] // #[macro_use] is required for no_std
#[macro_use]
extern crate alloc;
#[cfg(feature = "std")]

View File

@@ -183,6 +183,8 @@
)]
#![no_std]
#[allow(unused_imports)] // #[macro_use] is required for no_std
#[macro_use]
extern crate alloc;
#[cfg(feature = "std")]