Fix it
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
//! # fn main() {
|
//! # fn main() {
|
||||||
//! use cranelift_codegen::isa;
|
//! use cranelift_codegen::isa;
|
||||||
//! use cranelift_codegen::settings::{self, Configurable};
|
//! use cranelift_codegen::settings::{self, Configurable};
|
||||||
//! use alloc::str::FromStr;
|
//! use std::str::FromStr;
|
||||||
//! use target_lexicon::Triple;
|
//! use target_lexicon::Triple;
|
||||||
//!
|
//!
|
||||||
//! let shared_builder = settings::builder();
|
//! let shared_builder = settings::builder();
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
)]
|
)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
#[allow(unused_imports)] // #[macro_use] is required for no_std
|
||||||
|
#[macro_use]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
|
|||||||
@@ -183,6 +183,8 @@
|
|||||||
)]
|
)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
#[allow(unused_imports)] // #[macro_use] is required for no_std
|
||||||
|
#[macro_use]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
|
|||||||
Reference in New Issue
Block a user