Skip to content

Commit dac5f93

Browse files
committed
Fix bug that would have caused every crate build to fail
docs.rs needs build tests :( ``` 2020/09/04 23:06:51 [INFO] rustwide::cmd: [stderr] error: Unrecognized option: 'disable-per-crate-search--extern-html-root-url' ```
1 parent adbe398 commit dac5f93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/docbuilder/rustwide_builder.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ impl RustwideBuilder {
581581

582582
let mut env_vars = metadata.environment_variables();
583583
let rustdoc_flags = env_vars.entry("RUSTDOCFLAGS").or_default();
584-
rustdoc_flags.push_str(" --static-root-path / --cap-lints warn --disable-per-crate-search");
584+
// WARNING: this *must* end with a space or it will cause rustdoc to give an error
585+
rustdoc_flags
586+
.push_str(" --static-root-path / --cap-lints warn --disable-per-crate-search ");
585587
rustdoc_flags.push_str(&rustdoc_flags_extras.join(" "));
586588

587589
let mut command = build

0 commit comments

Comments
 (0)