Update to rustfmt-preview (#348)
* Update to rustfmt-preview. * Run "cargo fmt --all" with rustfmt 0.4.1. rustfmt 0.4.1 is the latest release of rustfmt-preview available on the stable channel. * Fix a long line that rustfmt 0.4.1 can't handle. * Remove unneeded commas left behind by rustfmt.
This commit is contained in:
@@ -3,18 +3,10 @@
|
||||
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
||||
#![warn(unused_import_braces, unstable_features)]
|
||||
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default, new_without_default_derive))]
|
||||
#![cfg_attr(feature = "cargo-clippy",
|
||||
allow(new_without_default, new_without_default_derive))]
|
||||
#![cfg_attr(feature="cargo-clippy", warn(
|
||||
float_arithmetic,
|
||||
mut_mut,
|
||||
nonminimal_bool,
|
||||
option_map_unwrap_or,
|
||||
option_map_unwrap_or_else,
|
||||
print_stdout,
|
||||
unicode_not_nfc,
|
||||
use_self,
|
||||
))]
|
||||
warn(float_arithmetic, mut_mut, nonminimal_bool, option_map_unwrap_or,
|
||||
option_map_unwrap_or_else, print_stdout, unicode_not_nfc, use_self))]
|
||||
|
||||
/// Provide these crates, renamed to reduce stutter.
|
||||
pub extern crate cretonne_codegen as codegen;
|
||||
@@ -25,14 +17,13 @@ pub extern crate cretonne_frontend as frontend;
|
||||
pub mod prelude {
|
||||
pub use codegen;
|
||||
pub use codegen::entity::EntityRef;
|
||||
pub use codegen::ir::{AbiParam, InstBuilder, Value, Ebb, Signature, Type, JumpTableData,
|
||||
MemFlags, ExtFuncData, GlobalVarData, StackSlotData, StackSlotKind,
|
||||
TrapCode};
|
||||
pub use codegen::ir::types;
|
||||
pub use codegen::ir::condcodes::{IntCC, FloatCC};
|
||||
pub use codegen::ir::condcodes::{FloatCC, IntCC};
|
||||
pub use codegen::ir::immediates::{Ieee32, Ieee64, Imm64};
|
||||
pub use codegen::settings::{self, Configurable, CallConv};
|
||||
pub use codegen::ir::types;
|
||||
pub use codegen::ir::{AbiParam, Ebb, ExtFuncData, GlobalVarData, InstBuilder, JumpTableData,
|
||||
MemFlags, Signature, StackSlotData, StackSlotKind, TrapCode, Type, Value};
|
||||
pub use codegen::isa;
|
||||
pub use codegen::settings::{self, CallConv, Configurable};
|
||||
|
||||
pub use frontend::{FunctionBuilderContext, FunctionBuilder, Variable};
|
||||
pub use frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user