-
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
Stabilize UNICODE_VERSION (feature unicode_version) #71068
Conversation
Using a |
@Serentty the version numbers are defined by the standard to always be one byte each: #49726 (comment). |
@rfcbot fcp merge |
Team member @sfackler has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), 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. |
@sfackler I should have checked to see if there was anything like that before commenting. This seems like a perfect solution then. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
I would like to see an explicit note in the documentation that says something about this version number changing over time, and that the value is as such not covered by our stability policy. |
@Mark-Simulacrum I've added a note explaining that Rust regularly updates to the most recent Unicode version and that therefore the version number will change. |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
src/libcore/char/mod.rs
Outdated
|
||
// unstable re-exports | ||
#[unstable(feature = "unicode_version", issue = "49726")] | ||
#[stable(feature = "unicode_version", since = "1.44.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.
Beta has branched to 1.44: https://github.com/rust-lang/rust/blob/beta/src/bootstrap/channel.rs#L15-L16
So this needs to be 1.45.0, same with the const
item below. r=me with this.
The feature will become stable in Rust 1.45. Noted that the value of UNICODE_VERSION is expected to change.
Changed version to 1.45 and squashed everything into one commit. r? @SimonSapin |
Looks good, thanks! @bors r+ |
📌 Commit aa0175c has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#70845 (Make the `structural_match` error diagnostic for const generics clearer) - rust-lang#71063 (Document unsafety in core::{option, hash}) - rust-lang#71068 (Stabilize UNICODE_VERSION (feature unicode_version)) - rust-lang#71426 (fix error code in E0751.md) - rust-lang#71459 (Add leading 0x to offset in Debug fmt of Pointer) - rust-lang#71492 (Document unsafety in core::{panicking, alloc::layout, hint, iter::adapters::zip}) Failed merges: r? @ghost
Yay! This is perfect for static asserts in software that needs a certain new version of Unicode. |
Tracking issue: #49726
r? @sfackler
#71020 changed the definition of
UNICODE_VERSION
just yesterday from a struct to a tuple. Maybe you want to wait some more before stabilizing this constant, on the other hand this is a very small and simple addition.CC @behnam @SimonSapin @Serentty