Skip to content
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

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Stabilize UNICODE_VERSION (feature unicode_version) #71068

merged 1 commit into from
Apr 24, 2020

Conversation

pyfisch
Copy link
Contributor

@pyfisch pyfisch commented Apr 12, 2020

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 12, 2020
@jonas-schievink jonas-schievink added A-Unicode Area: Unicode needs-fcp This change is insta-stable, so needs a completed FCP to proceed. relnotes Marks issues that should be documented in the release notes of the next release. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Apr 12, 2020
@jonas-schievink jonas-schievink added this to the 1.44 milestone Apr 12, 2020
@Serentty
Copy link
Contributor

Using a u8 to store the version number seems like a bit of a premature optimization to me, but given that it will take hundreds of years before that integer is too small to hold the latest Unicode version, I would support stabilizing this, since I think that not having this functionality is a larger issue than any nitpicks like that.

@sfackler
Copy link
Member

@Serentty the version numbers are defined by the standard to always be one byte each: #49726 (comment).

@sfackler
Copy link
Member

@rfcbot fcp merge

@rfcbot
Copy link

rfcbot commented Apr 12, 2020

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.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Apr 12, 2020
@Serentty
Copy link
Contributor

@sfackler I should have checked to see if there was anything like that before commenting. This seems like a perfect solution then.

@rfcbot rfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Apr 13, 2020
@rfcbot
Copy link

rfcbot commented Apr 13, 2020

🔔 This is now entering its final comment period, as per the review above. 🔔

@Mark-Simulacrum
Copy link
Member

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.

@pyfisch
Copy link
Contributor Author

pyfisch commented Apr 13, 2020

@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.

@Dylan-DPC-zz Dylan-DPC-zz modified the milestones: 1.44, 1.45 Apr 21, 2020
@rfcbot
Copy link

rfcbot commented Apr 23, 2020

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.

@rfcbot rfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Apr 23, 2020

// unstable re-exports
#[unstable(feature = "unicode_version", issue = "49726")]
#[stable(feature = "unicode_version", since = "1.44.0")]
Copy link
Contributor

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.
@pyfisch
Copy link
Contributor Author

pyfisch commented Apr 23, 2020

Changed version to 1.45 and squashed everything into one commit.

r? @SimonSapin

@rust-highfive rust-highfive assigned SimonSapin and unassigned sfackler Apr 23, 2020
@SimonSapin
Copy link
Contributor

Looks good, thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Apr 23, 2020

📌 Commit aa0175c has been approved by SimonSapin

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 23, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 24, 2020
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
@bors bors merged commit c33deb9 into rust-lang:master Apr 24, 2020
@Serentty
Copy link
Contributor

Yay! This is perfect for static asserts in software that needs a certain new version of Unicode.

@pyfisch pyfisch deleted the unicode-version-stable branch April 25, 2020 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Unicode Area: Unicode disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. needs-fcp This change is insta-stable, so needs a completed FCP to proceed. relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants