Skip to content

Commit 07396f1

Browse files
jyn514Nemo157
andauthored
Give a better error message when using CI toolchain
This *should* be statically impossible, but the Rustwide API doesn't allow making that part of the type system. Co-authored-by: Nemo157 <[email protected]>
1 parent 836d18b commit 07396f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docbuilder/rustwide_builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl RustwideBuilder {
211211
.prefix("essential-files")
212212
.tempdir()?;
213213

214-
let toolchain_version = self.toolchain.as_dist().unwrap().name();
214+
let toolchain_version = self.toolchain.as_dist().expect("we only use the Toolchain::dist constructor").name();
215215
let output = build.cmd(Rustdoc { toolchain_version })
216216
.args(&["-Zunstable-options", "--print=unversioned-files"])
217217
.run_capture()

0 commit comments

Comments
 (0)