We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1361f commit ffd4078Copy full SHA for ffd4078
src/bootstrap/doc.rs
@@ -524,8 +524,13 @@ impl Step for JsonStd {
524
const DEFAULT: bool = false;
525
526
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
527
- let default = run.builder.config.docs && run.builder.config.cmd.json();
528
- run.all_krates("test").path("library").default_condition(default)
+ if run.builder.config.cmd.json() {
+ let default = run.builder.config.docs && run.builder.config.cmd.json();
529
+ run.all_krates("test").path("library").default_condition(default)
530
+ } else {
531
+ // Without this JsonStd would take priority on Std and prevent it from running.
532
+ run.never()
533
+ }
534
}
535
536
fn make_run(run: RunConfig<'_>) {
0 commit comments