Skip to content

Mark 'atomic_mut_ptr' methods const - #107706

Merged
bors merged 1 commit into
rust-lang:masterfrom
tgross35:atomic-as-mut-ptr
Feb 7, 2023
Merged

Mark 'atomic_mut_ptr' methods const#107706
bors merged 1 commit into
rust-lang:masterfrom
tgross35:atomic-as-mut-ptr

Conversation

@tgross35

Copy link
Copy Markdown
Member

There's nothing that would block these methods from being const (just an UnsafeCell get), and it would be helpful for FFI interfaces in static contexts

Related tracking issue: #66893

@rustbot

Copy link
Copy Markdown
Collaborator

r? @cuviper

(rustbot has picked a reviewer for you, use r? to override)

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Feb 5, 2023
@rustbot

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

@tgross35tgross35 mentioned this pull request Feb 5, 2023
6 tasks
@tgross35

Copy link
Copy Markdown
MemberAuthor

I don't know how to know if this needs the const_unstable attribute, since it builds fine without it. So please let me know if that needs to be added.

@m-ou-se

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Feb 6, 2023

Copy link
Copy Markdown
Collaborator

📌 Commit b51d3b9 has been approved by m-ou-se

It is now in the queue for this repository.

@borsbors 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 Feb 6, 2023
@m-ou-sem-ou-se assigned m-ou-se and unassigned cuviperFeb 6, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 6, 2023
Mark 'atomic_mut_ptr' methods const
There's nothing that would block these methods from being const (just an UnsafeCell get), and it would be helpful for FFI interfaces in static contexts
Related tracking issue: rust-lang#66893
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 7, 2023
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#100599 (Add compiler error E0523 long description and test)
- rust-lang#107471 (rustdoc: do not include empty default-settings tag in HTML)
- rust-lang#107555 (Modify existing bounds if they exist)
- rust-lang#107662 (Turn projections into copies in CopyProp.)
- rust-lang#107695 (Add test for Future inflating arg size to 3x )
- rust-lang#107700 (Run the tools builder on all PRs)
- rust-lang#107706 (Mark 'atomic_mut_ptr' methods const)
- rust-lang#107709 (Fix problem noticed in PR106859 with char -> u8 suggestion)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit e45984b into rust-lang:masterFeb 7, 2023
@rustbotrustbot added this to the 1.69.0 milestone Feb 7, 2023
@tgross35
tgross35 deleted the atomic-as-mut-ptr branch February 7, 2023 21:54
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 10, 2023
 Rename atomic 'as_mut_ptr' to 'as_ptr' to match Cell (ref rust-lang#66893)
Originally discussed in rust-lang#66893 (comment)
~~This uses rust-lang#107706 as a base to avoid a merge conflict once that gets rolled up (so disregard const changes in the diff until it does)~~ all merged & rebased
`@rustbot` label +T-libs-api
r? m-ou-se
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 22, 2023
 Rename atomic 'as_mut_ptr' to 'as_ptr' to match Cell (ref rust-lang#66893)
Originally discussed in rust-lang#66893 (comment)
~~This uses rust-lang#107706 as a base to avoid a merge conflict once that gets rolled up (so disregard const changes in the diff until it does)~~ all merged & rebased
`@rustbot` label +T-libs-api
r? m-ou-se
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tgross35@rustbot@m-ou-se@bors@cuviper