Add use declarations for std features.
Merge the `use` parts of the `no_std` branch. This reduces the diffs between master and the `no_std` branch, making it easier to maintain. Most of these changes are derived from patches by @lachlansneff in https://github.com/Cretonne/cretonne/tree/no_std.
This commit is contained in:
@@ -9,6 +9,7 @@ use isa::{TargetIsa, RegInfo};
|
||||
use std::fmt::{self, Result, Error, Write};
|
||||
use std::result;
|
||||
use packed_option::ReservedValue;
|
||||
use std::string::String;
|
||||
|
||||
/// Write `func` to `w` as equivalent text.
|
||||
/// Use `isa` to emit ISA-dependent annotations.
|
||||
@@ -466,6 +467,7 @@ impl<'a> fmt::Display for DisplayValues<'a> {
|
||||
mod tests {
|
||||
use ir::{Function, ExternalName, StackSlotData, StackSlotKind};
|
||||
use ir::types;
|
||||
use std::string::ToString;
|
||||
|
||||
#[test]
|
||||
fn basic() {
|
||||
|
||||
Reference in New Issue
Block a user