Add Path::absolute method as alias for std::path::absolute#153272
Add Path::absolute method as alias for std::path::absolute#153272wmmc88 wants to merge 1 commit intorust-lang:mainfrom
Path::absolute method as alias for std::path::absolute#153272Conversation
|
r? @tgross35 rustbot has assigned @tgross35. Use Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
Technically this should probably get an ACP, but given this is pretty straightforward and Chris is in favor it seems fine to just nominated here.
@rustbot label +I-libs-api-nominated
|
Reminder, once the PR becomes ready for a review, use |
|
Also, please handwrite the PR description; the AI-generated restatement of diff contents is not helpful. (small typo in the commit message as well, says |
be051c9 to
daee312
Compare
This comment has been minimized.
This comment has been minimized.
|
This was discussed in the @rust-lang/libs-api meeting and we're happy to approve this. |
Add a convenience method Path::absolute() that delegates to the existing free function std::path::absolute(), mirroring the pattern of Path::canonicalize() delegating to fs::canonicalize(). Tracking issue: rust-lang#153328
daee312 to
bde5b58
Compare
|
@bors r+ rollup |
…=tgross35 Add `Path::absolute` method as alias for `std::path::absolute` `Path::canonicalize()` is an alias for `fs::canonicalize()`, but there's no equivalent `Path::absolute()` for `path::absolute()`. This adds one. Discussed in rust-lang#92750 (comment), Chris [said](rust-lang#92750 (comment)) a PR would be welcome. Tracking issue: rust-lang#153328
Path::canonicalize()is an alias forfs::canonicalize(), but there's no equivalentPath::absolute()forpath::absolute(). This adds one.Discussed in #92750 (comment), Chris said a PR would be welcome.
Tracking issue: #153328