Always use extern crate std in cranelift-frontend

This commit is contained in:
bjorn3
2019-09-28 15:57:43 +02:00
committed by Dan Gohman
parent 74556d45ae
commit 1a99ac6b4a
4 changed files with 7 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ use cranelift_codegen::ir::{
};
use cranelift_codegen::isa::{TargetFrontendConfig, TargetIsa};
use cranelift_codegen::packed_option::PackedOption;
use std::vec::Vec;
use alloc::vec::Vec;
/// Structure used for translating a series of functions into Cranelift IR.
///
@@ -899,7 +899,7 @@ mod tests {
use cranelift_codegen::isa::CallConv;
use cranelift_codegen::settings;
use cranelift_codegen::verifier::verify_function;
use std::string::ToString;
use alloc::string::ToString;
fn sample_function(lazy_seal: bool) {
let mut sig = Signature::new(CallConv::SystemV);