@@ -108,6 +108,7 @@ pub fn compile_input(sess: Session,
108
108
& sess,
109
109
outdir,
110
110
output,
111
+ & outputs,
111
112
& expanded_crate,
112
113
& id[ ..] ) ) ;
113
114
@@ -122,6 +123,7 @@ pub fn compile_input(sess: Session,
122
123
& sess,
123
124
outdir,
124
125
output,
126
+ & outputs,
125
127
& ast_map,
126
128
& ast_map. krate( ) ,
127
129
& id[ ..] ) ) ;
@@ -137,6 +139,7 @@ pub fn compile_input(sess: Session,
137
139
& analysis. ty_cx. sess,
138
140
outdir,
139
141
output,
142
+ & outputs,
140
143
analysis. ty_cx. map. krate( ) ,
141
144
& analysis,
142
145
& analysis. ty_cx) ) ;
@@ -164,6 +167,7 @@ pub fn compile_input(sess: Session,
164
167
& sess,
165
168
outdir,
166
169
output,
170
+ & outputs,
167
171
& trans) ) ;
168
172
169
173
phase_6_link_output ( & sess, & trans, & outputs) ;
@@ -259,17 +263,18 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
259
263
fn empty ( input : & ' a Input ,
260
264
session : & ' a Session ,
261
265
out_dir : & ' a Option < Path > ,
262
- output : & ' a Option < Path > )
266
+ output : & ' a Option < Path > ,
267
+ output_filenames : Option < & ' a OutputFilenames > )
263
268
-> CompileState < ' a , ' tcx > {
264
269
CompileState {
265
270
input : input,
266
271
session : session,
267
272
out_dir : out_dir. as_ref ( ) ,
268
273
output : output. as_ref ( ) ,
274
+ output_filenames : output_filenames,
269
275
cfg : None ,
270
276
krate : None ,
271
277
crate_name : None ,
272
- output_filenames : None ,
273
278
expanded_crate : None ,
274
279
ast_map : None ,
275
280
analysis : None ,
@@ -286,28 +291,31 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
286
291
-> CompileState < ' a , ' tcx > {
287
292
CompileState {
288
293
krate : Some ( krate) ,
289
- .. CompileState :: empty ( input, session, out_dir, output)
294
+ .. CompileState :: empty ( input, session, out_dir, output, None )
290
295
}
291
296
}
292
297
293
298
fn state_after_expand ( input : & ' a Input ,
294
299
session : & ' a Session ,
295
300
out_dir : & ' a Option < Path > ,
296
301
output : & ' a Option < Path > ,
302
+ output_filenames : & ' a OutputFilenames ,
297
303
expanded_crate : & ' a ast:: Crate ,
298
304
crate_name : & ' a str )
299
305
-> CompileState < ' a , ' tcx > {
300
306
CompileState {
301
307
crate_name : Some ( crate_name) ,
302
308
expanded_crate : Some ( expanded_crate) ,
303
- .. CompileState :: empty ( input, session, out_dir, output)
309
+ .. CompileState :: empty ( input, session, out_dir, output,
310
+ Some ( output_filenames) )
304
311
}
305
312
}
306
313
307
314
fn state_after_write_deps ( input : & ' a Input ,
308
315
session : & ' a Session ,
309
316
out_dir : & ' a Option < Path > ,
310
317
output : & ' a Option < Path > ,
318
+ output_filenames : & ' a OutputFilenames ,
311
319
ast_map : & ' a ast_map:: Map < ' tcx > ,
312
320
expanded_crate : & ' a ast:: Crate ,
313
321
crate_name : & ' a str )
@@ -316,14 +324,16 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
316
324
crate_name : Some ( crate_name) ,
317
325
ast_map : Some ( ast_map) ,
318
326
expanded_crate : Some ( expanded_crate) ,
319
- .. CompileState :: empty ( input, session, out_dir, output)
327
+ .. CompileState :: empty ( input, session, out_dir, output,
328
+ Some ( output_filenames) )
320
329
}
321
330
}
322
331
323
332
fn state_after_analysis ( input : & ' a Input ,
324
333
session : & ' a Session ,
325
334
out_dir : & ' a Option < Path > ,
326
335
output : & ' a Option < Path > ,
336
+ output_filenames : & ' a OutputFilenames ,
327
337
expanded_crate : & ' a ast:: Crate ,
328
338
analysis : & ' a ty:: CrateAnalysis < ' tcx > ,
329
339
tcx : & ' a ty:: ctxt < ' tcx > )
@@ -332,7 +342,8 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
332
342
analysis : Some ( analysis) ,
333
343
tcx : Some ( tcx) ,
334
344
expanded_crate : Some ( expanded_crate) ,
335
- .. CompileState :: empty ( input, session, out_dir, output)
345
+ .. CompileState :: empty ( input, session, out_dir, output,
346
+ Some ( output_filenames) )
336
347
}
337
348
}
338
349
@@ -341,11 +352,13 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
341
352
session : & ' a Session ,
342
353
out_dir : & ' a Option < Path > ,
343
354
output : & ' a Option < Path > ,
355
+ output_filenames : & ' a OutputFilenames ,
344
356
trans : & ' a trans:: CrateTranslation )
345
357
-> CompileState < ' a , ' tcx > {
346
358
CompileState {
347
359
trans : Some ( trans) ,
348
- .. CompileState :: empty ( input, session, out_dir, output)
360
+ .. CompileState :: empty ( input, session, out_dir, output,
361
+ Some ( output_filenames) )
349
362
}
350
363
}
351
364
}
0 commit comments