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 69b352e commit 8260b83Copy full SHA for 8260b83
src/librustdoc/config.rs
@@ -565,7 +565,7 @@ impl Options {
565
let target =
566
matches.opt_str("target").map_or(TargetTriple::from_triple(host_triple()), |target| {
567
if target.ends_with(".json") {
568
- TargetTriple::TargetPath(PathBuf::from(target))
+ TargetTriple::from_path(Path::new(&target))
569
} else {
570
TargetTriple::TargetTriple(target)
571
}
0 commit comments