File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
112
112
rustc_const_math syntax_pos rustc_errors
113
113
DEPS_rustc_back := std syntax flate log libc
114
114
DEPS_rustc_borrowck := rustc log graphviz syntax syntax_pos rustc_errors rustc_mir
115
- DEPS_rustc_data_structures := std log serialize
115
+ DEPS_rustc_data_structures := std log serialize libc
116
116
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
117
117
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
118
118
rustc_trans rustc_privacy rustc_lint rustc_plugin \
@@ -137,9 +137,8 @@ DEPS_rustc_save_analysis := rustc log syntax syntax_pos serialize
137
137
DEPS_rustc_typeck := rustc syntax syntax_pos rustc_platform_intrinsics rustc_const_math \
138
138
rustc_const_eval rustc_errors
139
139
140
- DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
141
- test rustc_lint rustc_const_eval syntax_pos
142
-
140
+ DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts test \
141
+ rustc_lint rustc_const_eval syntax_pos rustc_data_structures
143
142
144
143
TOOL_DEPS_compiletest := test getopts log serialize
145
144
TOOL_DEPS_rustdoc := rustdoc
File renamed without changes.
Original file line number Diff line number Diff line change 30
30
#![ feature( staged_api) ]
31
31
#![ feature( unboxed_closures) ]
32
32
#![ feature( fn_traits) ]
33
+ #![ feature( libc) ]
33
34
34
35
#![ cfg_attr( test, feature( test) ) ]
35
36
36
37
extern crate core;
37
38
#[ macro_use]
38
39
extern crate log;
39
40
extern crate serialize as rustc_serialize; // used by deriving
41
+ #[ cfg( unix) ]
42
+ extern crate libc;
40
43
41
44
pub mod bitvec;
42
45
pub mod graph;
@@ -51,6 +54,7 @@ pub mod fnv;
51
54
pub mod tuple_slice;
52
55
pub mod veccell;
53
56
pub mod control_flow_graph;
57
+ pub mod flock;
54
58
55
59
// See comments in src/librustc/lib.rs
56
60
#[ doc( hidden) ]
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ use rustc::middle::stability;
62
62
use rustc:: session:: config:: get_unstable_features_setting;
63
63
use rustc:: hir;
64
64
use rustc:: util:: nodemap:: { FnvHashMap , FnvHashSet } ;
65
+ use rustc_data_structures:: flock;
65
66
66
67
use clean:: { self , Attributes , GetDefId } ;
67
68
use doctree;
@@ -651,7 +652,7 @@ fn write_shared(cx: &Context,
651
652
// docs placed in the output directory, so this needs to be a synchronized
652
653
// operation with respect to all other rustdocs running around.
653
654
try_err ! ( mkdir( & cx. dst) , & cx. dst) ;
654
- let _lock = :: flock:: Lock :: new ( & cx. dst . join ( ".lock" ) ) ;
655
+ let _lock = flock:: Lock :: new ( & cx. dst . join ( ".lock" ) ) ;
655
656
656
657
// Add all the static files. These may already exist, but we just
657
658
// overwrite them anyway to make sure that they're fresh and up-to-date.
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ extern crate libc;
35
35
extern crate rustc;
36
36
extern crate rustc_const_eval;
37
37
extern crate rustc_const_math;
38
+ extern crate rustc_data_structures;
38
39
extern crate rustc_trans;
39
40
extern crate rustc_driver;
40
41
extern crate rustc_resolve;
@@ -86,7 +87,6 @@ pub mod plugins;
86
87
pub mod visit_ast;
87
88
pub mod visit_lib;
88
89
pub mod test;
89
- mod flock;
90
90
91
91
use clean:: Attributes ;
92
92
You can’t perform that action at this time.
0 commit comments