Always use extern crate std in cranelift-codegen
This commit is contained in:
@@ -16,7 +16,7 @@ use crate::isa::Builder as IsaBuilder;
|
||||
use crate::isa::{EncInfo, RegClass, RegInfo, TargetIsa};
|
||||
use crate::regalloc;
|
||||
use core::fmt;
|
||||
use std::boxed::Box;
|
||||
use alloc::boxed::Box;
|
||||
use target_lexicon::{Architecture, Triple};
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
||||
@@ -8,7 +8,7 @@ include!(concat!(env!("OUT_DIR"), "/registers-arm32.rs"));
|
||||
mod tests {
|
||||
use super::{D, GPR, INFO, S};
|
||||
use crate::isa::RegUnit;
|
||||
use std::string::{String, ToString};
|
||||
use alloc::string::{String, ToString};
|
||||
|
||||
#[test]
|
||||
fn unit_encodings() {
|
||||
|
||||
Reference in New Issue
Block a user