Remove unneeded extern crate, macro_use, and tidy uses.

This commit is contained in:
Dan Gohman
2019-11-08 17:13:06 -08:00
parent 31f8f124f5
commit 061b453255
62 changed files with 126 additions and 262 deletions

View File

@@ -1,19 +1,6 @@
#![cfg_attr(test, feature(test))]
#![feature(proc_macro_hygiene)]
#[macro_use]
extern crate smallvec;
extern crate capstone;
extern crate either;
pub extern crate wasmparser;
#[macro_use]
extern crate memoffset;
extern crate dynasm;
extern crate dynasmrt;
extern crate itertools;
// Just so we can implement `Signature` for `cranelift_codegen::ir::Signature`
extern crate cranelift_codegen;
extern crate multi_mut;
#[cfg(test)]
extern crate test;

View File

@@ -1,5 +1,5 @@
use crate::module::{ModuleContext, SigType, Signature};
use smallvec::SmallVec;
use smallvec::{smallvec, SmallVec};
use std::{
convert::TryInto,
fmt,

View File

@@ -7,6 +7,7 @@ use cranelift_codegen::{
ir::{self, AbiParam, Signature as CraneliftSignature},
isa,
};
use memoffset::offset_of;
use more_asserts::assert_le;
use wasmparser::{FuncType, MemoryType, ModuleReader, SectionCode, Type};