Second stabilisation pass of *::char#20395
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 |
src/libcore/char.rs
Outdated
There was a problem hiding this comment.
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.
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).