File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,8 @@ impl Options {
814814
815815        let  scrape_examples_options = ScrapeExamplesOptions :: new ( matches,  dcx) ; 
816816        let  with_examples = matches. opt_strs ( "with-examples" ) ; 
817-         let  call_locations = crate :: scrape_examples:: load_call_locations ( with_examples,  dcx) ; 
817+         let  call_locations =
818+             crate :: scrape_examples:: load_call_locations ( with_examples,  dcx,  & mut  loaded_paths) ; 
818819        let  doctest_build_args = matches. opt_strs ( "doctest-build-arg" ) ; 
819820
820821        let  unstable_features =
Original file line number Diff line number Diff line change @@ -333,14 +333,11 @@ pub(crate) fn run(
333333pub ( crate )  fn  load_call_locations ( 
334334    with_examples :  Vec < String > , 
335335    dcx :  DiagCtxtHandle < ' _ > , 
336+     loaded_paths :  & mut  Vec < PathBuf > , 
336337)  -> AllCallLocations  { 
337338    let  mut  all_calls:  AllCallLocations  = FxIndexMap :: default ( ) ; 
338339    for  path in  with_examples { 
339-         // FIXME: Figure out why this line is causing this feature to crash in specific contexts. 
340-         // Full issue backlog is available here: <https://github.com/rust-lang/rust/pull/144600>. 
341-         // 
342-         // Can be checked with `tests/run-make/rustdoc-scrape-examples-paths`. 
343-         // loaded_paths.push(path.clone().into()); 
340+         loaded_paths. push ( path. clone ( ) . into ( ) ) ; 
344341        let  bytes = match  fs:: read ( & path)  { 
345342            Ok ( bytes)  => bytes, 
346343            Err ( e)  => dcx. fatal ( format ! ( "failed to load examples: {e}" ) ) , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments