-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement AsRef<Path> for Component #46985
Conversation
r? @BurntSushi (rust_highfive has picked a reviewer for you, use r? to override) |
src/libstd/path.rs
Outdated
@@ -576,6 +576,13 @@ impl<'a> AsRef<OsStr> for Component<'a> { | |||
} | |||
} | |||
|
|||
#[unstable(feature = "path_component_asref", issue = "41866")] |
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.
Trait impls are insta-stable. Please change this to a stable
attribute.
This seems reasonable to me. @rfcbot fcp merge |
2c2452e
to
e0855ff
Compare
@BurntSushi is that correct? Is there any documentation about stability attributes? |
(@BurntSushi The |
@rfcbot fcp merge |
Team member @BurntSushi has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
I don't know about any docs. It's just folk knowledge? cc @rust-lang/libs |
Yeah, that stability attribute looks right. |
Ping @aturon, ticky box for you! #46985 (comment) |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@bors: r+ |
📌 Commit e0855ff has been approved by |
…xcrichton Implement AsRef<Path> for Component Fixes rust-lang#41866
I'm a little confused why adding an |
@vitiral It's well covered ground, but I actually don't know of any central resource on the matter. AFAIK, if your use of |
(From a technicality perspective, we're empowered to make changes like this via the API evolution RFC, but pragmatism rules the day.) |
Here is the specific relevant section: https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md#minor-change-implementing-any-non-fundamental-trait |
Fixes #41866