-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Second stabilisation pass of *::char
#20395
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
I’ve added some minor notes, but this looks good to me overall. |
@huonw Finished with initial review, left a few comments. |
Quoting here to preserve discussion.
Good catch.
I'm not sure what the context of this is? (i.e. as stabilised,
Ok.
I don't have a particular opinion, but it does sounds like |
@@ -8,6 +8,9 @@ | |||
// option. This file may not be copied, modified, or distributed | |||
// except according to those terms. | |||
|
|||
// XXX todolist: len_utf8, len_utf16 (names), encode_utf8, | |||
// encode_utf16 (names, API) are still strange. |
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.
Just a note to take another look at this. I've been told that if you s/XXX/TODO/ it'll fail make tidy to make sure you come back to look at it.
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.
Oh, whoops. I explicitly chose XXX because I thought make tidy
failed on it, but I clearly misremembered.
I've looked this over and it all looks good to me, thanks @huonw!
I would probably most be in favor of having these be |
@huonw Needs a rebase -- and it'd be good to go ahead and get this wrapped up and landed soon. I agree with @alexcrichton that places with conventions questions around integers can be left |
Re
is a good point and reason enough to leave them as |
e7c4404
to
8be3869
Compare
Updated. In particular, I've reverted the (I believe I was told that stability attributes are useless either on the trait methods or the |
@huonw Looks good to me. I don't think we have a terribly clear convention on whether |
Imports may need to be updated so this is a [breaking-change]
This "reexports" all the functionality of `core::char::CharExt` as methods on `unicode::u_char::UnicodeChar` (renamed to `CharExt`). Imports may need to be updated (one now just imports `unicode::CharExt`, or `std::char::CharExt` rather than two traits from either), so this is a [breaking-change]
cc #19260 The casing transformations are left unstable (it is highly likely to be better to adopt the proper non-1-to-1 case mappings, per #20333) as are `is_xid_*`. I've got a little todo list in the last commit of things I thought about/was told about that I haven't yet handled (I'd also like some feedback).
cc #19260
The casing transformations are left unstable (it is highly likely to be better to adopt the proper non-1-to-1 case mappings, per #20333) as are
is_xid_*
.I've got a little todo list in the last commit of things I thought about/was told about that I haven't yet handled (I'd also like some feedback).