File tree 9 files changed +92
-23
lines changed
9 files changed +92
-23
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ crate-type = ["dylib"]
12
12
arena = { path = " ../libarena" }
13
13
graphviz = { path = " ../libgraphviz" }
14
14
log = " 0.4"
15
- env_logger = { version = " 0.4 " , default-features = false }
15
+ env_logger = { version = " 0.5 " , default-features = false }
16
16
rustc = { path = " ../librustc" }
17
17
rustc_allocator = { path = " ../librustc_allocator" }
18
18
rustc_back = { path = " ../librustc_back" }
Original file line number Diff line number Diff line change @@ -1577,7 +1577,7 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
1577
1577
}
1578
1578
1579
1579
pub fn main ( ) {
1580
- env_logger:: init ( ) . unwrap ( ) ;
1580
+ env_logger:: init ( ) ;
1581
1581
let result = run ( || {
1582
1582
let args = env:: args_os ( ) . enumerate ( )
1583
1583
. map ( |( i, arg) | arg. into_string ( ) . unwrap_or_else ( |arg| {
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ syntax = { path = "../libsyntax" }
35
35
syntax_pos = { path = " ../libsyntax_pos" }
36
36
tempdir = " 0.3"
37
37
38
+ # not actually used but needed to make sure we enable the same feature set as
39
+ # winapi used in librustc
40
+ env_logger = { version = " 0.5" , default-features = false }
41
+
38
42
[features ]
39
43
# Used to communicate the feature to `rustc_back` in the same manner that the
40
44
# `rustc` driver script communicate this.
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ struct Output {
100
100
101
101
pub fn main ( ) {
102
102
const STACK_SIZE : usize = 32_000_000 ; // 32MB
103
- env_logger:: init ( ) . unwrap ( ) ;
103
+ env_logger:: init ( ) ;
104
104
let res = std:: thread:: Builder :: new ( ) . stack_size ( STACK_SIZE ) . spawn ( move || {
105
105
get_args ( ) . map ( |args| main_args ( & args) ) . unwrap_or ( 1 )
106
106
} ) . unwrap ( ) . join ( ) . unwrap_or ( 101 ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ version = "0.0.0"
5
5
6
6
[dependencies ]
7
7
diff = " 0.1.10"
8
- env_logger = { version = " 0.4 " , default-features = false }
8
+ env_logger = { version = " 0.5 " , default-features = false }
9
9
filetime = " 0.1"
10
10
getopts = " 0.2"
11
11
log = " 0.4"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ mod raise_fd_limit;
51
51
mod read2;
52
52
53
53
fn main ( ) {
54
- env_logger:: init ( ) . unwrap ( ) ;
54
+ env_logger:: init ( ) ;
55
55
56
56
let config = parse_config ( env:: args ( ) . collect ( ) ) ;
57
57
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ fn check(cache: &mut Cache,
139
139
file. ends_with ( "util/struct.ThinVec.html" ) ||
140
140
file. ends_with ( "util/struct.RcSlice.html" ) ||
141
141
file. ends_with ( "layout/struct.TyLayout.html" ) ||
142
+ file. ends_with ( "humantime/struct.Timestamp.html" ) ||
143
+ file. ends_with ( "log/index.html" ) ||
142
144
file. ends_with ( "ty/struct.Slice.html" ) ||
143
145
file. ends_with ( "ty/enum.Attributes.html" ) ||
144
146
file. ends_with ( "ty/struct.SymbolName.html" ) {
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ static WHITELIST_CRATES: &'static [CrateVersion] = &[
56
56
57
57
/// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
58
58
static WHITELIST : & ' static [ Crate ] = & [
59
+ Crate ( "aho-corasick" ) ,
59
60
Crate ( "ar" ) ,
61
+ Crate ( "atty" ) ,
60
62
Crate ( "backtrace" ) ,
61
63
Crate ( "backtrace-sys" ) ,
62
64
Crate ( "bitflags" ) ,
@@ -65,32 +67,47 @@ static WHITELIST: &'static [Crate] = &[
65
67
Crate ( "cfg-if" ) ,
66
68
Crate ( "cmake" ) ,
67
69
Crate ( "ena" ) ,
70
+ Crate ( "env_logger" ) ,
68
71
Crate ( "filetime" ) ,
69
72
Crate ( "flate2" ) ,
70
73
Crate ( "fuchsia-zircon" ) ,
71
74
Crate ( "fuchsia-zircon-sys" ) ,
75
+ Crate ( "humantime" ) ,
72
76
Crate ( "jobserver" ) ,
73
77
Crate ( "kernel32-sys" ) ,
74
78
Crate ( "lazy_static" ) ,
75
79
Crate ( "libc" ) ,
76
80
Crate ( "log" ) ,
77
81
Crate ( "log_settings" ) ,
82
+ Crate ( "memchr" ) ,
78
83
Crate ( "miniz-sys" ) ,
79
84
Crate ( "num_cpus" ) ,
80
85
Crate ( "owning_ref" ) ,
81
86
Crate ( "parking_lot" ) ,
82
87
Crate ( "parking_lot_core" ) ,
88
+ Crate ( "quick-error" ) ,
83
89
Crate ( "rand" ) ,
84
90
Crate ( "redox_syscall" ) ,
91
+ Crate ( "redox_termios" ) ,
92
+ Crate ( "regex" ) ,
93
+ Crate ( "regex-syntax" ) ,
85
94
Crate ( "rustc-demangle" ) ,
86
95
Crate ( "smallvec" ) ,
87
96
Crate ( "stable_deref_trait" ) ,
88
97
Crate ( "tempdir" ) ,
98
+ Crate ( "termcolor" ) ,
99
+ Crate ( "terminon" ) ,
100
+ Crate ( "termion" ) ,
101
+ Crate ( "thread_local" ) ,
89
102
Crate ( "unicode-width" ) ,
103
+ Crate ( "unreachable" ) ,
104
+ Crate ( "utf8-ranges" ) ,
105
+ Crate ( "void" ) ,
90
106
Crate ( "winapi" ) ,
91
107
Crate ( "winapi-build" ) ,
92
108
Crate ( "winapi-i686-pc-windows-gnu" ) ,
93
109
Crate ( "winapi-x86_64-pc-windows-gnu" ) ,
110
+ Crate ( "wincolor" ) ,
94
111
] ;
95
112
96
113
// Some types for Serde to deserialize the output of `cargo metadata` to...
You can’t perform that action at this time.
0 commit comments