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

@@ -7,9 +7,13 @@
#![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",
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
)
)]
extern crate cretonne_codegen;

View File

@@ -2237,9 +2237,9 @@ impl<'a> Parser<'a> {
#[cfg(test)]
mod tests {
use super::*;
use cretonne_codegen::ir::StackSlotKind;
use cretonne_codegen::ir::entities::AnyEntity;
use cretonne_codegen::ir::types;
use cretonne_codegen::ir::StackSlotKind;
use cretonne_codegen::ir::{ArgumentExtension, ArgumentPurpose};
use cretonne_codegen::settings::CallConv;
use error::Error;

View File

@@ -4,8 +4,8 @@
//! file-based test case.
//!
use cretonne_codegen::ir::Function;
use cretonne_codegen::ir::entities::AnyEntity;
use cretonne_codegen::ir::Function;
use error::Location;
use isaspec::IsaSpec;
use sourcemap::SourceMap;