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

@@ -9,9 +9,13 @@
type_complexity,
// Rustfmt 0.9.0 is at odds with this lint:
block_in_if_condition_stmt))]
#![cfg_attr(feature = "cargo-clippy",
warn(mut_mut, nonminimal_bool, option_map_unwrap_or, option_map_unwrap_or_else,
unicode_not_nfc, use_self))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
mut_mut, nonminimal_bool, option_map_unwrap_or, option_map_unwrap_or_else, unicode_not_nfc,
use_self
)
)]
#[macro_use(dbg)]
extern crate cretonne_codegen;

View File

@@ -6,8 +6,8 @@ use cretonne_codegen::print_errors::pretty_verifier_error;
use cretonne_codegen::settings::Flags;
use cretonne_codegen::timing;
use cretonne_codegen::verify_function;
use cretonne_reader::IsaSpec;
use cretonne_reader::parse_test;
use cretonne_reader::IsaSpec;
use std::borrow::Cow;
use std::fs;
use std::io::{self, Read};

View File

@@ -14,8 +14,8 @@
use cretonne_codegen::dominator_tree::{DominatorTree, DominatorTreePreorder};
use cretonne_codegen::flowgraph::ControlFlowGraph;
use cretonne_codegen::ir::Function;
use cretonne_codegen::ir::entities::AnyEntity;
use cretonne_codegen::ir::Function;
use cretonne_reader::TestCommand;
use match_directive::match_directive;
use std::borrow::{Borrow, Cow};