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

@@ -3,9 +3,9 @@
//! Read a sequence of Cretonne IR files and print them again to stdout. This has the effect of
//! normalizing formatting and removing comments.
use CommandResult;
use cretonne_reader::parse_functions;
use utils::read_to_string;
use CommandResult;
pub fn run(files: &[String]) -> CommandResult {
for (i, f) in files.into_iter().enumerate() {

View File

@@ -1,10 +1,10 @@
//! CLI tool to read Cretonne IR files and compile them into native code.
use capstone::prelude::*;
use cretonne_codegen::Context;
use cretonne_codegen::isa::TargetIsa;
use cretonne_codegen::print_errors::pretty_error;
use cretonne_codegen::settings::FlagsOrIsa;
use cretonne_codegen::Context;
use cretonne_codegen::{binemit, ir};
use cretonne_reader::parse_test;
use std::path::Path;

View File

@@ -1,8 +1,12 @@
#![deny(trivial_numeric_casts)]
#![warn(unused_import_braces, unstable_features, unused_extern_crates)]
#![cfg_attr(feature = "cargo-clippy",
warn(float_arithmetic, mut_mut, nonminimal_bool, option_map_unwrap_or,
option_map_unwrap_or_else, 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,
unicode_not_nfc, use_self
)
)]
#[macro_use]
extern crate cfg_if;

View File

@@ -3,10 +3,10 @@
//! Read a series of Cretonne IR files and print their control flow graphs
//! in graphviz format.
use CommandResult;
use cretonne_codegen::cfg_printer::CFGPrinter;
use cretonne_reader::parse_functions;
use utils::read_to_string;
use CommandResult;
pub fn run(files: &[String]) -> CommandResult {
for (i, f) in files.into_iter().enumerate() {

View File

@@ -2,10 +2,10 @@
//!
//! This file is named to avoid a name collision with the filecheck crate.
use CommandResult;
use filecheck::{Checker, CheckerBuilder, NO_VARIABLES};
use std::io::{self, Read};
use utils::read_to_string;
use CommandResult;
pub fn run(files: &[String], verbose: bool) -> CommandResult {
if files.is_empty() {