Format source codes and update tests

This commit is contained in:
topecongiro 2017-08-09 00:16:35 +09:00
parent 7bf9aa25be
commit c28df858c7
6 changed files with 25 additions and 15 deletions

View File

@ -11,11 +11,11 @@
#![cfg(not(test))]
extern crate env_logger;
extern crate getopts;
extern crate log;
extern crate rustfmt_nightly as rustfmt;
extern crate toml;
extern crate env_logger;
extern crate getopts;
use std::{env, error};
use std::fs::File;

View File

@ -10,23 +10,19 @@
#![feature(rustc_private)]
extern crate diff;
#[macro_use]
extern crate log;
extern crate regex;
extern crate rustc_errors as errors;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate syntax;
extern crate rustc_errors as errors;
extern crate strings;
extern crate unicode_segmentation;
extern crate regex;
extern crate diff;
extern crate syntax;
extern crate term;
extern crate unicode_segmentation;
use std::collections::HashMap;
use std::fmt;

View File

@ -3,6 +3,13 @@
extern crate foo ;
extern crate foo as bar ;
extern crate futures;
extern crate dotenv;
extern crate chrono;
extern crate foo;
extern crate bar;
extern "C" {
fn c_func(x: *mut *mut libc::c_void);

View File

@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern crate rustfmt_nightly as rustfmt;
extern crate diff;
extern crate regex;
extern crate rustfmt_nightly as rustfmt;
extern crate term;
use std::collections::HashMap;

View File

@ -1,17 +1,17 @@
// Attributes on extern crate.
extern crate Foo;
#[Attr1]
extern crate Bar;
#[Attr2]
#[Attr2]
extern crate Baz;
extern crate Foo;
fn foo() {
extern crate Foo;
#[Attr1]
extern crate Bar;
#[Attr2]
#[Attr2]
extern crate Baz;
extern crate Foo;
}

View File

@ -1,7 +1,14 @@
// rustfmt-normalize_comments: true
extern crate foo;
extern crate foo as bar;
extern crate foo;
extern crate chrono;
extern crate dotenv;
extern crate futures;
extern crate bar;
extern crate foo;
extern "C" {
fn c_func(x: *mut *mut libc::c_void);