@@ -219,7 +219,6 @@ fn run_compiler(
219
219
crate_cfg : cfg,
220
220
crate_check_cfg : check_cfg,
221
221
input : Input :: File ( PathBuf :: new ( ) ) ,
222
- input_path : None ,
223
222
output_file : ofile,
224
223
output_dir : odir,
225
224
file_loader,
@@ -237,9 +236,8 @@ fn run_compiler(
237
236
238
237
match make_input ( config. opts . error_format , & matches. free ) {
239
238
Err ( reported) => return Err ( reported) ,
240
- Ok ( Some ( ( input, input_file_path ) ) ) => {
239
+ Ok ( Some ( input) ) => {
241
240
config. input = input;
242
- config. input_path = input_file_path;
243
241
244
242
callbacks. config ( & mut config) ;
245
243
}
@@ -437,7 +435,7 @@ fn make_output(matches: &getopts::Matches) -> (Option<PathBuf>, Option<PathBuf>)
437
435
fn make_input (
438
436
error_format : ErrorOutputType ,
439
437
free_matches : & [ String ] ,
440
- ) -> Result < Option < ( Input , Option < PathBuf > ) > , ErrorGuaranteed > {
438
+ ) -> Result < Option < Input > , ErrorGuaranteed > {
441
439
if free_matches. len ( ) == 1 {
442
440
let ifile = & free_matches[ 0 ] ;
443
441
if ifile == "-" {
@@ -459,12 +457,12 @@ fn make_input(
459
457
let line = isize:: from_str_radix ( & line, 10 )
460
458
. expect ( "UNSTABLE_RUSTDOC_TEST_LINE needs to be an number" ) ;
461
459
let file_name = FileName :: doc_test_source_code ( PathBuf :: from ( path) , line) ;
462
- Ok ( Some ( ( Input :: Str { name : file_name, input : src } , None ) ) )
460
+ Ok ( Some ( Input :: Str { name : file_name, input : src } ) )
463
461
} else {
464
- Ok ( Some ( ( Input :: Str { name : FileName :: anon_source_code ( & src) , input : src } , None ) ) )
462
+ Ok ( Some ( Input :: Str { name : FileName :: anon_source_code ( & src) , input : src } ) )
465
463
}
466
464
} else {
467
- Ok ( Some ( ( Input :: File ( PathBuf :: from ( ifile) ) , Some ( PathBuf :: from ( ifile ) ) ) ) )
465
+ Ok ( Some ( Input :: File ( PathBuf :: from ( ifile) ) ) )
468
466
}
469
467
} else {
470
468
Ok ( None )
0 commit comments