1
Fork 0

compiler: run python3 ./x.py fmt

This fixes a build issue with formatting as part of #83800.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-04-03 15:00:10 +08:00
parent 6f1ac8d756
commit 8f73fe91f5
2 changed files with 9 additions and 7 deletions

View file

@ -1791,11 +1791,8 @@ impl Target {
// Additionally look in the sysroot under `lib/rustlib/<triple>/target.json`
// as a fallback.
let p = sysroot
.join("lib")
.join("rustlib")
.join(&target_triple)
.join("target.json");
let p =
sysroot.join("lib").join("rustlib").join(&target_triple).join("target.json");
if p.is_file() {
return load_file(&p);
}