Always use extern crate std in cranelift-codegen
This commit is contained in:
@@ -227,7 +227,7 @@ fn try_fold_redundant_jump(
|
||||
}
|
||||
|
||||
// Build a value list of first_args (unchanged) followed by second_params (rewritten).
|
||||
let arguments_vec: std::vec::Vec<_> = first_args
|
||||
let arguments_vec: alloc::vec::Vec<_> = first_args
|
||||
.iter()
|
||||
.chain(second_params.iter())
|
||||
.map(|x| *x)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::bitset::BitSet;
|
||||
use crate::ir;
|
||||
use crate::isa::TargetIsa;
|
||||
use std::vec::Vec;
|
||||
use alloc::vec::Vec;
|
||||
|
||||
type Num = u32;
|
||||
const NUM_BITS: usize = core::mem::size_of::<Num>() * 8;
|
||||
@@ -42,7 +42,7 @@ impl Stackmap {
|
||||
let frame_size = stack.frame_size.unwrap();
|
||||
let word_size = ir::stackslot::StackSize::from(isa.pointer_bytes());
|
||||
let num_words = (frame_size / word_size) as usize;
|
||||
let mut vec = std::vec::Vec::with_capacity(num_words);
|
||||
let mut vec = alloc::vec::Vec::with_capacity(num_words);
|
||||
|
||||
vec.resize(num_words, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user