Improve naming and path operations in crate loader

Simplify the path operation with `join`, clarify some of the names.
This commit is contained in:
Nilstrieb
2024-06-06 21:52:22 +02:00
parent 4c2b21a2ef
commit b4c439c3de
3 changed files with 14 additions and 18 deletions

View File

@@ -3367,7 +3367,7 @@ impl Target {
// Additionally look in the sysroot under `lib/rustlib/<triple>/target.json`
// as a fallback.
let rustlib_path = crate::target_rustlib_path(sysroot, target_triple);
let rustlib_path = crate::relative_target_rustlib_path(sysroot, target_triple);
let p = PathBuf::from_iter([
Path::new(sysroot),
Path::new(&rustlib_path),