File tree 5 files changed +10
-6
lines changed
5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
111
111
rustc_const_math syntax_pos rustc_errors
112
112
DEPS_rustc_back := std syntax flate log libc
113
113
DEPS_rustc_borrowck := rustc log graphviz syntax syntax_pos rustc_errors rustc_mir
114
- DEPS_rustc_data_structures := std log serialize
114
+ DEPS_rustc_data_structures := std log serialize libc
115
115
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
116
116
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
117
117
rustc_trans rustc_privacy rustc_lint rustc_plugin \
@@ -135,9 +135,8 @@ DEPS_rustc_save_analysis := rustc log syntax syntax_pos serialize
135
135
DEPS_rustc_typeck := rustc syntax syntax_pos rustc_platform_intrinsics rustc_const_math \
136
136
rustc_const_eval rustc_errors
137
137
138
- DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
139
- test rustc_lint rustc_const_eval syntax_pos
140
-
138
+ DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts test \
139
+ rustc_lint rustc_const_eval syntax_pos rustc_data_structures
141
140
142
141
TOOL_DEPS_compiletest := test getopts log serialize
143
142
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 @@ -61,6 +61,7 @@ use rustc::middle::privacy::AccessLevels;
61
61
use rustc:: middle:: stability;
62
62
use rustc:: session:: config:: get_unstable_features_setting;
63
63
use rustc:: hir;
64
+ use rustc_data_structures:: flock;
64
65
65
66
use clean:: { self , Attributes , GetDefId } ;
66
67
use doctree;
@@ -650,7 +651,7 @@ fn write_shared(cx: &Context,
650
651
// docs placed in the output directory, so this needs to be a synchronized
651
652
// operation with respect to all other rustdocs running around.
652
653
try_err ! ( mkdir( & cx. dst) , & cx. dst) ;
653
- let _lock = :: flock:: Lock :: new ( & cx. dst . join ( ".lock" ) ) ;
654
+ let _lock = flock:: Lock :: new ( & cx. dst . join ( ".lock" ) ) ;
654
655
655
656
// Add all the static files. These may already exist, but we just
656
657
// 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