Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user