File tree Expand file tree Collapse file tree 6 files changed +25
-15
lines changed Expand file tree Collapse file tree 6 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 11
11
#![ cfg( not( test) ) ]
12
12
13
13
14
+ extern crate env_logger;
15
+ extern crate getopts;
14
16
extern crate log;
15
17
extern crate rustfmt_nightly as rustfmt;
16
18
extern crate toml;
17
- extern crate env_logger;
18
- extern crate getopts;
19
19
20
20
use std:: { env, error} ;
21
21
use std:: fs:: File ;
Original file line number Diff line number Diff line change 10
10
11
11
#![ feature( rustc_private) ]
12
12
13
+ extern crate diff;
13
14
#[ macro_use]
14
15
extern crate log;
15
-
16
+ extern crate regex;
17
+ extern crate rustc_errors as errors;
16
18
extern crate serde;
17
19
#[ macro_use]
18
20
extern crate serde_derive;
19
21
extern crate serde_json;
20
-
21
- extern crate syntax;
22
- extern crate rustc_errors as errors;
23
-
24
22
extern crate strings;
25
-
26
- extern crate unicode_segmentation;
27
- extern crate regex;
28
- extern crate diff;
23
+ extern crate syntax;
29
24
extern crate term;
25
+ extern crate unicode_segmentation;
30
26
31
27
use std:: collections:: HashMap ;
32
28
use std:: fmt;
Original file line number Diff line number Diff line change 3
3
extern crate foo ;
4
4
extern crate foo as bar ;
5
5
6
+ extern crate futures;
7
+ extern crate dotenv;
8
+ extern crate chrono;
9
+
10
+ extern crate foo;
11
+ extern crate bar;
12
+
6
13
extern "C" {
7
14
fn c_func ( x : * mut * mut libc:: c_void ) ;
8
15
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- extern crate rustfmt_nightly as rustfmt;
12
11
extern crate diff;
13
12
extern crate regex;
13
+ extern crate rustfmt_nightly as rustfmt;
14
14
extern crate term;
15
15
16
16
use std:: collections:: HashMap ;
Original file line number Diff line number Diff line change 1
1
// Attributes on extern crate.
2
2
3
- extern crate Foo ;
4
3
#[ Attr1 ]
5
4
extern crate Bar ;
6
5
#[ Attr2 ]
7
6
#[ Attr2 ]
8
7
extern crate Baz ;
8
+ extern crate Foo ;
9
9
10
10
fn foo ( ) {
11
- extern crate Foo ;
12
11
#[ Attr1 ]
13
12
extern crate Bar ;
14
13
#[ Attr2 ]
15
14
#[ Attr2 ]
16
15
extern crate Baz ;
16
+ extern crate Foo ;
17
17
}
Original file line number Diff line number Diff line change 1
1
// rustfmt-normalize_comments: true
2
2
3
- extern crate foo;
4
3
extern crate foo as bar;
4
+ extern crate foo;
5
+
6
+ extern crate chrono;
7
+ extern crate dotenv;
8
+ extern crate futures;
9
+
10
+ extern crate bar;
11
+ extern crate foo;
5
12
6
13
extern "C" {
7
14
fn c_func ( x : * mut * mut libc:: c_void ) ;
You can’t perform that action at this time.
0 commit comments