Always use extern crate std in cranelift-codegen

This commit is contained in:
bjorn3
2019-09-28 15:52:23 +02:00
committed by Dan Gohman
parent a114423d0a
commit 10e226f9ff
63 changed files with 89 additions and 90 deletions

View File

@@ -21,8 +21,8 @@ use crate::ir::{self, InstBuilder, MemFlags};
use crate::isa::TargetIsa;
use crate::predicates;
use crate::timing;
use std::collections::BTreeSet;
use std::vec::Vec;
use alloc::collections::BTreeSet;
use alloc::vec::Vec;
mod boundary;
mod call;
@@ -373,7 +373,7 @@ fn expand_br_table_conds(
let table_size = func.jump_tables[table].len();
let mut cond_failed_ebb = vec![];
if table_size >= 1 {
cond_failed_ebb = std::vec::Vec::with_capacity(table_size - 1);
cond_failed_ebb = alloc::vec::Vec::with_capacity(table_size - 1);
for _ in 0..table_size - 1 {
cond_failed_ebb.push(func.dfg.make_ebb());
}