Skip to content

Commit 82d937e

Browse files
committed
Remove references to json
1 parent 0792cde commit 82d937e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/ops/cargo_compile.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ pub fn create_bcx<'a, 'cfg>(
596596
}
597597

598598
if let Some(filter) = rustdoc_scrape_examples {
599-
// Run cargo rustdoc --scrape-examples to generate calls.jsons for each file in `filter`
599+
// Run cargo rustdoc --scrape-examples to generate calls for each file in `filter`
600600
let paths = {
601601
// Run in doc mode with the given `filter`
602602
let compile_mode = CompileMode::Doc { deps: false };
@@ -612,15 +612,15 @@ pub fn create_bcx<'a, 'cfg>(
612612
let interner = UnitInterner::new();
613613
let mut bcx = create_bcx(ws, &example_compile_opts, &interner)?;
614614

615-
// Make an output path for calls.json for each build unit
615+
// Make an output path for calls for each build unit
616616
let paths = {
617617
// FIXME(wcrichto): is there a better place to store these files?
618618
let dest = bcx.profiles.get_dir_name();
619619
let layout = Layout::new(ws, None, &dest)?;
620620
let output_dir = layout.prepare_tmp()?;
621621
bcx.roots
622622
.iter()
623-
.map(|unit| output_dir.join(format!("{}-calls.json", unit.buildkey())))
623+
.map(|unit| output_dir.join(format!("{}.calls", unit.buildkey())))
624624
.collect::<Vec<_>>()
625625
};
626626

@@ -688,7 +688,7 @@ pub fn create_bcx<'a, 'cfg>(
688688
paths
689689
};
690690

691-
// Add "--with-examples *-calls.json" to the current rustdoc invocation
691+
// Add "--with-examples *.calls" to the current rustdoc invocation
692692
let args = paths
693693
.into_iter()
694694
.map(|path| vec!["--with-examples".into(), path.into_os_string()].into_iter())

0 commit comments

Comments
 (0)