Skip to content

Commit 8260b83

Browse files
committed
Use TargetTriple::from_path in rustdoc
1 parent 69b352e commit 8260b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ impl Options {
565565
let target =
566566
matches.opt_str("target").map_or(TargetTriple::from_triple(host_triple()), |target| {
567567
if target.ends_with(".json") {
568-
TargetTriple::TargetPath(PathBuf::from(target))
568+
TargetTriple::from_path(Path::new(&target))
569569
} else {
570570
TargetTriple::TargetTriple(target)
571571
}

0 commit comments

Comments
 (0)