-
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
add FromStr
Impl for char
#42271
add FromStr
Impl for char
#42271
Conversation
3af38df
to
13c89a9
Compare
Currently the way to work across crates is stability attributes, so this is ok. If we decide to land this though the |
Team member @alexcrichton 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. |
If we stabilize the impl then we should also stabilize the error type? |
That's what I'm thinking, yeah. |
Changes look good to me, thanks @tinaun! |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@alexcrichton I think this is good to go, but I'm not sure if I understand the rfcbot process on PRs 100% so not going to r=you myself. |
src/libcore/char.rs
Outdated
|
||
/// An error which can be returned when parsing a char. | ||
#[stable(feature = "char_from_str", since = "1.19.0")] | ||
#[derive(Copy, Clone, Debug, PartialEq, Eq)] |
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.
To be conservative, could this remove Copy
, PartialEq
, and Eq
?
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.
sure
Ah no worries @Mark-Simulacrum. @tinaun I added one minor comment about the error type but otherwise this should be good to go. |
@tinaun oh it's ok to leave |
whoops, totally thought i removed copy |
Ah it looks like some of the tests are failing with the removal of |
The final comment period is now complete. |
fixed; squashed. |
@bors: r+ Thanks! |
📌 Commit fd9d7aa has been approved by |
@bors rollup |
add `FromStr` Impl for `char` fixes rust-lang#24939. is it possible to use pub(restricted) instead of using a stability attribute for the internal error representation? is it needed at all?
fixes #24939.
is it possible to use pub(restricted) instead of using a stability attribute for the internal error representation? is it needed at all?