@@ -17,17 +17,17 @@ impl Step for Std {
17
17
type Output = ( ) ;
18
18
const DEFAULT : bool = true ;
19
19
20
- fn should_run ( run : ShouldRun ) -> ShouldRun {
20
+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
21
21
run. all_krates ( "std" )
22
22
}
23
23
24
- fn make_run ( run : RunConfig ) {
24
+ fn make_run ( run : RunConfig < ' _ > ) {
25
25
run. builder . ensure ( Std {
26
26
target : run. target ,
27
27
} ) ;
28
28
}
29
29
30
- fn run ( self , builder : & Builder ) {
30
+ fn run ( self , builder : & Builder < ' _ > ) {
31
31
let target = self . target ;
32
32
let compiler = builder. compiler ( 0 , builder. config . build ) ;
33
33
@@ -56,11 +56,11 @@ impl Step for Rustc {
56
56
const ONLY_HOSTS : bool = true ;
57
57
const DEFAULT : bool = true ;
58
58
59
- fn should_run ( run : ShouldRun ) -> ShouldRun {
59
+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
60
60
run. all_krates ( "rustc-main" )
61
61
}
62
62
63
- fn make_run ( run : RunConfig ) {
63
+ fn make_run ( run : RunConfig < ' _ > ) {
64
64
run. builder . ensure ( Rustc {
65
65
target : run. target ,
66
66
} ) ;
@@ -71,7 +71,7 @@ impl Step for Rustc {
71
71
/// This will build the compiler for a particular stage of the build using
72
72
/// the `compiler` targeting the `target` architecture. The artifacts
73
73
/// created will also be linked into the sysroot directory.
74
- fn run ( self , builder : & Builder ) {
74
+ fn run ( self , builder : & Builder < ' _ > ) {
75
75
let compiler = builder. compiler ( 0 , builder. config . build ) ;
76
76
let target = self . target ;
77
77
@@ -103,11 +103,11 @@ impl Step for CodegenBackend {
103
103
const ONLY_HOSTS : bool = true ;
104
104
const DEFAULT : bool = true ;
105
105
106
- fn should_run ( run : ShouldRun ) -> ShouldRun {
106
+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
107
107
run. all_krates ( "rustc_codegen_llvm" )
108
108
}
109
109
110
- fn make_run ( run : RunConfig ) {
110
+ fn make_run ( run : RunConfig < ' _ > ) {
111
111
let backend = run. builder . config . rust_codegen_backends . get ( 0 ) ;
112
112
let backend = backend. cloned ( ) . unwrap_or_else ( || {
113
113
INTERNER . intern_str ( "llvm" )
@@ -118,7 +118,7 @@ impl Step for CodegenBackend {
118
118
} ) ;
119
119
}
120
120
121
- fn run ( self , builder : & Builder ) {
121
+ fn run ( self , builder : & Builder < ' _ > ) {
122
122
let compiler = builder. compiler ( 0 , builder. config . build ) ;
123
123
let target = self . target ;
124
124
let backend = self . backend ;
@@ -148,17 +148,17 @@ impl Step for Test {
148
148
type Output = ( ) ;
149
149
const DEFAULT : bool = true ;
150
150
151
- fn should_run ( run : ShouldRun ) -> ShouldRun {
151
+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
152
152
run. all_krates ( "test" )
153
153
}
154
154
155
- fn make_run ( run : RunConfig ) {
155
+ fn make_run ( run : RunConfig < ' _ > ) {
156
156
run. builder . ensure ( Test {
157
157
target : run. target ,
158
158
} ) ;
159
159
}
160
160
161
- fn run ( self , builder : & Builder ) {
161
+ fn run ( self , builder : & Builder < ' _ > ) {
162
162
let compiler = builder. compiler ( 0 , builder. config . build ) ;
163
163
let target = self . target ;
164
164
@@ -189,17 +189,17 @@ impl Step for Rustdoc {
189
189
const ONLY_HOSTS : bool = true ;
190
190
const DEFAULT : bool = true ;
191
191
192
- fn should_run ( run : ShouldRun ) -> ShouldRun {
192
+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
193
193
run. path ( "src/tools/rustdoc" )
194
194
}
195
195
196
- fn make_run ( run : RunConfig ) {
196
+ fn make_run ( run : RunConfig < ' _ > ) {
197
197
run. builder . ensure ( Rustdoc {
198
198
target : run. target ,
199
199
} ) ;
200
200
}
201
201
202
- fn run ( self , builder : & Builder ) {
202
+ fn run ( self , builder : & Builder < ' _ > ) {
203
203
let compiler = builder. compiler ( 0 , builder. config . build ) ;
204
204
let target = self . target ;
205
205
@@ -229,25 +229,37 @@ impl Step for Rustdoc {
229
229
230
230
/// Cargo's output path for the standard library in a given stage, compiled
231
231
/// by a particular compiler for the specified target.
232
- pub fn libstd_stamp ( builder : & Builder , compiler : Compiler , target : Interned < String > ) -> PathBuf {
232
+ pub fn libstd_stamp (
233
+ builder : & Builder < ' _ > ,
234
+ compiler : Compiler ,
235
+ target : Interned < String > ,
236
+ ) -> PathBuf {
233
237
builder. cargo_out ( compiler, Mode :: Std , target) . join ( ".libstd-check.stamp" )
234
238
}
235
239
236
240
/// Cargo's output path for libtest in a given stage, compiled by a particular
237
241
/// compiler for the specified target.
238
- pub fn libtest_stamp ( builder : & Builder , compiler : Compiler , target : Interned < String > ) -> PathBuf {
242
+ pub fn libtest_stamp (
243
+ builder : & Builder < ' _ > ,
244
+ compiler : Compiler ,
245
+ target : Interned < String > ,
246
+ ) -> PathBuf {
239
247
builder. cargo_out ( compiler, Mode :: Test , target) . join ( ".libtest-check.stamp" )
240
248
}
241
249
242
250
/// Cargo's output path for librustc in a given stage, compiled by a particular
243
251
/// compiler for the specified target.
244
- pub fn librustc_stamp ( builder : & Builder , compiler : Compiler , target : Interned < String > ) -> PathBuf {
252
+ pub fn librustc_stamp (
253
+ builder : & Builder < ' _ > ,
254
+ compiler : Compiler ,
255
+ target : Interned < String > ,
256
+ ) -> PathBuf {
245
257
builder. cargo_out ( compiler, Mode :: Rustc , target) . join ( ".librustc-check.stamp" )
246
258
}
247
259
248
260
/// Cargo's output path for librustc_codegen_llvm in a given stage, compiled by a particular
249
261
/// compiler for the specified target and backend.
250
- fn codegen_backend_stamp ( builder : & Builder ,
262
+ fn codegen_backend_stamp ( builder : & Builder < ' _ > ,
251
263
compiler : Compiler ,
252
264
target : Interned < String > ,
253
265
backend : Interned < String > ) -> PathBuf {
@@ -257,7 +269,11 @@ fn codegen_backend_stamp(builder: &Builder,
257
269
258
270
/// Cargo's output path for rustdoc in a given stage, compiled by a particular
259
271
/// compiler for the specified target.
260
- pub fn rustdoc_stamp ( builder : & Builder , compiler : Compiler , target : Interned < String > ) -> PathBuf {
272
+ pub fn rustdoc_stamp (
273
+ builder : & Builder < ' _ > ,
274
+ compiler : Compiler ,
275
+ target : Interned < String > ,
276
+ ) -> PathBuf {
261
277
builder. cargo_out ( compiler, Mode :: ToolRustc , target)
262
278
. join ( ".rustdoc-check.stamp" )
263
279
}
0 commit comments