path-uri: clarify host-native path conversion (#29501)

## Why

Downstream refactors are producing confusing code with this
functionality having a very generic name. Encoding the specific
conversion approach in the method name makes it clearer.

## What

Rename `PathUri::from_path` to `PathUri::from_host_native_path` and
update its Rust call sites.
This commit is contained in:
Adam Perry @ OpenAI authored and GitHub committed 2026-06-23 00:02:33 +00:00
1 parent c53b1dae09
commit 11fab432be
31 files changed
+250 -198

No files matched your search

+2 -1
View File
@@ -423,7 +423,8 @@ fn path_uri_deserializes_legacy_absolute_paths() {
#[test]
fn path_uri_rejects_relative_native_paths() {
let error = PathUri::from_path("src/lib.rs").expect_err("relative path should be rejected");
let error =
PathUri::from_host_native_path("src/lib.rs").expect_err("relative path should be rejected");
assert_eq!(error.kind(), io::ErrorKind::InvalidInput);
}