-
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
Add Default
implementation for &CStr
, CString
, Path
#32990
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
Split off from #32785. Some motivation: #32785 (comment). |
|
|
@@ -326,6 +326,22 @@ impl fmt::Debug for CStr { | |||
} | |||
} | |||
|
|||
#[stable(feature = "cstr_default", since = "1.9.0")] |
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.
We just hit 1.8.0 release, so it becomes since = 1.10.0
(if you could confirm @alexcrichton?).
I’m not sure about |
Dunno, maybe |
@tbu- for that purpose an equivalent of UNIX’s EDIT: in other words, I think this is too much a bikesheddable part to be included without an RFC. |
@nagisa Not for verbatim paths on Windows. |
I'm fine with the |
The libs team discussed this PR during triage today and the conclusion was that the Could you make those changes @tbu- and I'll r+? Thanks again for the PR! |
44e67d0
to
5efe083
Compare
@alexcrichton Changed. |
⌛ Testing commit 5efe083 with merge 77987ba... |
Add `Default` implementation for `&CStr`, `CString`, `Path`
No description provided.