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 const_ptr_offset_from. #96240

Merged
merged 2 commits into from
Aug 27, 2022

Conversation

fee1-dead
Copy link
Member

Stabilization has been completed here with a FCP.

Closes #92980.

@rust-highfive
Copy link
Collaborator

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:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@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
Copy link
Collaborator

r? @m-ou-se

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 20, 2022
@fee1-dead
Copy link
Member Author

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.

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch 2 times, most recently from 85a8c2c to acef376 Compare April 21, 2022 09:32
@bors
Copy link
Contributor

bors commented May 12, 2022

☔ The latest upstream changes (presumably #95837) made this pull request unmergeable. Please resolve the merge conflicts.

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch from acef376 to 77f5bb4 Compare May 12, 2022 06:34
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch from a36e998 to c182720 Compare May 12, 2022 07:49
@coolreader18
Copy link
Contributor

Is there an update for this?

Copy link
Member

@jhpratt jhpratt left a comment

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 fee1-dead force-pushed the stabilize_const_offset_from branch from c182720 to 0030103 Compare May 22, 2022 22:19
@fee1-dead
Copy link
Member Author

bumped.

@bors
Copy link
Contributor

bors commented May 29, 2022

☔ The latest upstream changes (presumably #97214) made this pull request unmergeable. Please resolve the merge conflicts.

@fee1-dead
Copy link
Member Author

fee1-dead commented Jun 4, 2022

(deleted)

@fee1-dead fee1-dead assigned m-ou-se and unassigned joshtriplett Jun 4, 2022
@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 fee1-dead force-pushed the stabilize_const_offset_from branch from 0030103 to c886f1d Compare June 4, 2022 13:32
@fee1-dead
Copy link
Member Author

r? rust-lang/libs

@rust-highfive rust-highfive assigned kennytm and unassigned m-ou-se Jul 24, 2022
@@ -1903,11 +1903,11 @@ extern "rust-intrinsic" {
pub fn nontemporal_store<T>(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")]
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch from c886f1d to 0f013f1 Compare July 24, 2022 10:43
@rustbot
Copy link
Collaborator

rustbot commented Jul 24, 2022

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:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@coolreader18
Copy link
Contributor

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
Copy link
Member

jhpratt commented Aug 24, 2022

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

Copy link
Member

@jhpratt jhpratt left a comment

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.

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch from 0f013f1 to 9c1bb80 Compare August 25, 2022 03:13
@rust-log-analyzer

This comment has been minimized.

@fee1-dead fee1-dead force-pushed the stabilize_const_offset_from branch from 9c1bb80 to 69ad634 Compare August 25, 2022 06:03
@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 27, 2022

📌 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
…ffset_from, r=Mark-Simulacrum

Stabilize `const_ptr_offset_from`.

Stabilization has been completed [here](rust-lang#92980 (comment)) with a FCP.

Closes rust-lang#92980.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 27, 2022
Rollup of 11 pull requests

Successful merges:

 - rust-lang#96240 (Stabilize `const_ptr_offset_from`.)
 - rust-lang#99784 (Make forward compatibility lint deprecated_cfg_attr_crate_type_name deny by default)
 - rust-lang#100811 (Fix wrong compiletest filters on Windows)
 - rust-lang#100924 (Smaller improvements of tidy and the unicode generator)
 - rust-lang#100953 (Update documentation for `write!` and `writeln!`)
 - rust-lang#101018 (rustdoc: omit start/end tags for empty item description blocks)
 - rust-lang#101044 (rustdoc: remove unused CSS for `hidden-by-*-hider`)
 - rust-lang#101046 (rustdoc: remove incorrect CSS selector `.impl-items table td`)
 - rust-lang#101057 (Merge implementations of HIR fn_decl and fn_sig.)
 - rust-lang#101062 (rustdoc: remove empty extern_crates and type="text/javascript" on script)
 - rust-lang#101063 (Merge duplicated CSS rules)

Failed merges:

 - rust-lang#101055 (Use smaller span for suggestions)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 539e408 into rust-lang:master Aug 27, 2022
@rustbot rustbot added this to the 1.65.0 milestone Aug 27, 2022
@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
…et_from)]`

The `const_ptr_offset_from` feature was stabilized by
[rust-lang/rust#96240][1].

[1]: rust-lang/rust#96240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracking Issue for const offset_from (const_ptr_offset_from)