Update to Rust 2018 edition (#632)

* initial cargo fix run

* Upgrade cranelift-entity crate

* Upgrade bforest crate

* Upgrade the codegen crate

* Upgrade the faerie crate

* Upgrade the filetests crate

* Upgrade the codegen-meta crate

* Upgrade the frontend crate

* Upgrade the cranelift-module crate

* Upgrade the cranelift-native crate

* Upgrade the cranelift-preopt crate

* Upgrade the cranelift-reader crate

* Upgrade the cranelift-serde crate

* Upgrade the cranelift-simplejit crate

* Upgrade the cranelift or cranelift-umbrella crate

* Upgrade the cranelift-wasm crate

* Upgrade cranelift-tools crate

* Use new import style on remaining files

* run format-all.sh

* run test-all.sh, update Readme and travis ci configuration
fixed an AssertionError also

* Remove deprecated functions
This commit is contained in:
Muhammad Mominul Huque
2018-12-26 23:49:05 +06:00
committed by Dan Gohman
parent e3db942b0c
commit effe6c04e4
217 changed files with 963 additions and 1021 deletions

View File

@@ -27,23 +27,23 @@
)]
/// Provide these crates, renamed to reduce stutter.
pub extern crate cranelift_codegen as codegen;
pub extern crate cranelift_frontend as frontend;
pub use cranelift_codegen as codegen;
pub use cranelift_frontend as frontend;
/// A prelude providing convenient access to commonly-used cranelift features. Use
/// as `use cranelift::prelude::*`.
pub mod prelude {
pub use codegen;
pub use codegen::entity::EntityRef;
pub use codegen::ir::condcodes::{FloatCC, IntCC};
pub use codegen::ir::immediates::{Ieee32, Ieee64, Imm64, Uimm64};
pub use codegen::ir::types;
pub use codegen::ir::{
pub use crate::codegen;
pub use crate::codegen::entity::EntityRef;
pub use crate::codegen::ir::condcodes::{FloatCC, IntCC};
pub use crate::codegen::ir::immediates::{Ieee32, Ieee64, Imm64, Uimm64};
pub use crate::codegen::ir::types;
pub use crate::codegen::ir::{
AbiParam, Ebb, ExtFuncData, ExternalName, GlobalValueData, InstBuilder, JumpTableData,
MemFlags, Signature, StackSlotData, StackSlotKind, TrapCode, Type, Value,
};
pub use codegen::isa;
pub use codegen::settings::{self, Configurable};
pub use crate::codegen::isa;
pub use crate::codegen::settings::{self, Configurable};
pub use frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
pub use crate::frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
}