Stabilize const_ptr_offset_from. by fee1-dead · Pull Request #96240 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation24 Commits2 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

fee1-dead

Stabilization has been completed here with a FCP.

Closes #92980.

@rust-highfive

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with r? rust-lang/libs-api @rustbot label +T-libs-api -T-libs to request review from a libs-api team reviewer. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

@rustbot rustbot added the T-libs

Relevant to the library team, which will review and decide on the PR/issue.

label

Apr 20, 2022

@rust-highfive

r? @m-ou-se

(rust-highfive has picked a reviewer for you, use r? to override)

@fee1-dead

r? rust-lang/libs-api

@rustbot label +T-libs-api +T-lang -T-libs

@rustbot rustbot added T-lang

Relevant to the language team, which will review and decide on the PR/issue.

T-libs-api

Relevant to the library API team, which will review and decide on the PR/issue.

labels

Apr 20, 2022

@rustbot rustbot removed the T-libs

Relevant to the library team, which will review and decide on the PR/issue.

label

Apr 20, 2022

@rust-log-analyzer

This comment has been minimized.

@ojeda ojeda mentioned this pull request

Apr 21, 2022

95 tasks

@bors

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@coolreader18

Is there an update for this?

jhpratt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than bumping the version to 1.63, LGTM.

@fee1-dead

@bors

@fee1-dead

@fee1-dead fee1-dead added the relnotes

Marks issues that should be documented in the release notes of the next release.

label

Jun 4, 2022

@fee1-dead

klensy

@@ -1903,11 +1903,11 @@ extern "rust-intrinsic" {
pub fn nontemporal_store(ptr: *mut T, val: T);
/// See documentation of `<*const T>::offset_from` for details.
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
#[rustc_const_stable(feature = "const_ptr_offset_from", since = "1.63.0")]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.64.0 here and lower?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rustbot

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

@coolreader18

Sorry to bump this again, but I think this stabilization is super exciting and important, since it finally allows for const offsetof(Foo.bar) calculations. I think by this point it should be stable since = "1.65.0" since 1.63 has been released, but could someone from the libs-api team (@jhpratt?) take a look at it after? The FCP was completed 5+ months ago at this point.

@jhpratt

I'm not on T-libs-api, but I'll take another look at it in the near future.

jhpratt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with before, diff LGTM. Just needs the version bumped to 1.65, naturally.

@rust-log-analyzer

This comment has been minimized.

@fee1-dead

@fee1-dead

@Mark-Simulacrum

@bors

📌 Commit 69ad634 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@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

Aug 27, 2022

compiler-errors added a commit to compiler-errors/rust that referenced this pull request

Aug 27, 2022

@compiler-errors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 27, 2022

@bors

Rollup of 11 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

@fee1-dead fee1-dead deleted the stabilize_const_offset_from branch

September 3, 2022 16:44

yvt added a commit to r3-os/r3 that referenced this pull request

Nov 12, 2022

@yvt

Labels

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-lang

Relevant to the language team, which will review and decide on the PR/issue.

T-libs-api

Relevant to the library API team, which will review and decide on the PR/issue.