Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).

This commit is contained in:
Dan Gohman
2018-05-29 10:37:38 -07:00
parent 7045c41418
commit a1fe0f82e1
45 changed files with 124 additions and 76 deletions

View File

@@ -607,7 +607,6 @@ where
#[cfg(test)]
mod tests {
use Variable;
use cretonne_codegen::entity::EntityRef;
use cretonne_codegen::ir::types::*;
use cretonne_codegen::ir::{AbiParam, ExternalName, Function, InstBuilder, Signature};
@@ -615,6 +614,7 @@ mod tests {
use cretonne_codegen::settings::CallConv;
use cretonne_codegen::verifier::verify_function;
use frontend::{FunctionBuilder, FunctionBuilderContext};
use Variable;
fn sample_function(lazy_seal: bool) {
let mut sig = Signature::new(CallConv::SystemV);

View File

@@ -131,9 +131,13 @@
#![warn(unused_import_braces)]
#![cfg_attr(feature = "std", warn(unstable_features))]
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default))]
#![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))]
#![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
)
)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]

View File

@@ -712,7 +712,6 @@ where
#[cfg(test)]
mod tests {
use Variable;
use cretonne_codegen::cursor::{Cursor, FuncCursor};
use cretonne_codegen::entity::EntityRef;
use cretonne_codegen::ir::instructions::BranchInfo;
@@ -721,6 +720,7 @@ mod tests {
use cretonne_codegen::settings;
use cretonne_codegen::verify_function;
use ssa::SSABuilder;
use Variable;
#[test]
fn simple_block() {