@@ -219,7 +219,6 @@ fn run_compiler(
219219 crate_cfg : cfg,
220220 crate_check_cfg : check_cfg,
221221 input : Input :: File ( PathBuf :: new ( ) ) ,
222- input_path : None ,
223222 output_file : ofile,
224223 output_dir : odir,
225224 file_loader,
@@ -237,9 +236,8 @@ fn run_compiler(
237236
238237 match make_input ( config. opts . error_format , & matches. free ) {
239238 Err ( reported) => return Err ( reported) ,
240- Ok ( Some ( ( input, input_file_path ) ) ) => {
239+ Ok ( Some ( input) ) => {
241240 config. input = input;
242- config. input_path = input_file_path;
243241
244242 callbacks. config ( & mut config) ;
245243 }
@@ -437,7 +435,7 @@ fn make_output(matches: &getopts::Matches) -> (Option<PathBuf>, Option<PathBuf>)
437435fn make_input (
438436 error_format : ErrorOutputType ,
439437 free_matches : & [ String ] ,
440- ) -> Result < Option < ( Input , Option < PathBuf > ) > , ErrorGuaranteed > {
438+ ) -> Result < Option < Input > , ErrorGuaranteed > {
441439 if free_matches. len ( ) == 1 {
442440 let ifile = & free_matches[ 0 ] ;
443441 if ifile == "-" {
@@ -459,12 +457,12 @@ fn make_input(
459457 let line = isize:: from_str_radix ( & line, 10 )
460458 . expect ( "UNSTABLE_RUSTDOC_TEST_LINE needs to be an number" ) ;
461459 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 } ) )
463461 } 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 } ) )
465463 }
466464 } else {
467- Ok ( Some ( ( Input :: File ( PathBuf :: from ( ifile) ) , Some ( PathBuf :: from ( ifile ) ) ) ) )
465+ Ok ( Some ( Input :: File ( PathBuf :: from ( ifile) ) ) )
468466 }
469467 } else {
470468 Ok ( None )
0 commit comments