We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 600ec28 commit 935e281Copy full SHA for 935e281
src/bootstrap/doc.rs
@@ -432,6 +432,12 @@ impl Step for Std {
432
let stage = self.stage;
433
let target = self.target;
434
builder.info(&format!("Documenting stage{} std ({})", stage, target));
435
+ if builder.no_std(target) == Some(true) {
436
+ panic!(
437
+ "building std documentation for no_std target {target} is not supported\n\
438
+ Set `docs = false` in the config to disable documentation."
439
+ );
440
+ }
441
let out = builder.doc_out(target);
442
t!(fs::create_dir_all(&out));
443
let compiler = builder.compiler(stage, builder.config.build);
0 commit comments