-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path methods — symlinks improvement #85747
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Did you test this on a regular file? This also returns |
This comment has been minimized.
This comment has been minimized.
You'll have to look at the metadata itself (using |
For the stability attribute: You'll have to come up with a new feature name (e.g. Feel free to open a tracking issue for it. For completeness, it's probably good to also add this function to |
…d for `Metadata`
Thank you, @m-ou-se, for your remarks, I've changed implementation and added an issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks good. I only have a few tiny comments on the documentation left:
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
Thanks! @bors r+ |
📌 Commit f3c1db3 has been approved by |
⌛ Testing commit f3c1db3 with merge 6ff500ed65c5e8c788456933c0e3ff983cfd7018... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Ah, the example doesn't compile on non-unix targets. You could replace the
Here's an example: rust/library/std/src/os/unix/net/stream.rs Lines 365 to 371 in b17d9c1
|
@bors r+ |
📌 Commit 01435fc has been approved by |
☀️ Test successful - checks-actions |
Disambiguate is_symlink. `Path::is_symlink` was added in rust-lang/rust#85747 which triggers the `unstable_name_collisions` lint, breaking Cargo's CI. This switches it to a free function to avoid the collision.
Disambiguate is_symlink. `Path::is_symlink` was added in rust-lang/rust#85747 which triggers the `unstable_name_collisions` lint, breaking Cargo's CI. This switches it to a free function to avoid the collision.
This PR adds symlink method for the
Path
.Tracking issue: #85748
For the discussion you can see internals topic
P.S.
I'm not fully sure about
stable
attribute, correct me if I'm wrong.