Repository navigation
Partially stabilize ptr_alignment_type as alignment_type - #153261
GrigorenkoPV wants to merge 1 commit into
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
For reasons behind what exactly is being stabilized, why moved from @rustbot label -T-libs +T-libs-api +I-libs-api-nominated |
This comment has been minimized.
This comment has been minimized.
477a37d to
d922849
Compare
This comment has been minimized.
This comment has been minimized.
|
This currently fails due to So we either have to change our name, patch bumpalo locally, or convince bumpalo to change their and wait until this repo updates to a newer version of bumpalo. |
|
So, part of the reason why I suggested just stabilising the type instead of, for example, the |
d922849 to
2e0ca01
Compare
|
Good argument, I've updated the PR and the description accordingly. |
This comment has been minimized.
This comment has been minimized.
2e0ca01 to
50f74f1
Compare
This comment has been minimized.
This comment has been minimized.
|
Side note: it's kind of bad form to stabilise stuff under one flag while keeping other methods unstable. You can just name the stuff left out as
( Rereading the PR, you did already rename the feature flags, so, my bad. You can do this suggestion to further separate the names if you want, but it's not actually as necessary as I thought it was, since the stable/unstable features are different. |
eb247cb to
ecd2e44
Compare
This comment has been minimized.
This comment has been minimized.
|
This was discussed in today's @rust-lang/libs-api meeting and we concluded that we'd like to see the methods on |
|
Could the renames and moves be split to a separate PR from stabilization? There is a lot going on here at once. We also don't need to add deprecated methods/aliases IMO. Users of unstable API need to be aware that there will occasionally be breaking changes, we shouldn't take on the extra burden of trying to smooth this except in rare cases. |
|
(Came here from the meeting notes) I'd proposed the partial here, @nia-e, because I figured some pieces of this were "obvious" (assuming we want the type at all) like I'm perfectly happy to see more stabilized if folks are happy with it :) |
|
Oh, and +💯 to separating out the move from any stabilizations. That can be landed easily without FCP, but with the mir-opt implications and such it's noisy so valuable to have separate from the feature gating changes. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6596ef6 to
1aea16f
Compare
|
Rebased, changed the bound to @rustbot ready |
|
Edited the existing tracking issues to match feature moves, but one last ask: as part of an ongoing effort, could you open a new tracking issue for the remaining unstable methods on r? clarfonthey @rustbot author |
The current PR is keep non-stabilized things under the old feature name, and it's the newly-stabilized things that get a new feature name. Maybe it would make more sense to instead put non-stabilized APIs (that still have the old |
|
I guess part of my issue is that we tend to accumulate old discussions on already stabilized things to the point where status gets confusing, and strictly speaking, making a new issue to just close it is kind of pointless. (In particular, because the tracking issue ID never actually makes it onto any new features, since stable features don't use issue IDs.) So, I would prefer to close the existing issue and make a new one with a new issue so it's clear the scope is smaller, but I guess in this case I would be amenable to just editing the current one since it hasn't picked up a lot of discussion yet. So, I am fine just merging this if you don't want to move to a new issue, but I would prefer to do that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@rustbot author (RIP) |
|
@bors r+ rollup Thank you! (and, well, if CI fails, we'll try again) |
|
❌ Commit a8dd244 has been unapproved due to PR CI failure. Reapprove it with |
This comment has been minimized.
This comment has been minimized.
|
I'm tired, boss |
|
@bors r+ |
|
❌ Commit 95309cb has been unapproved due to PR CI failure. Reapprove it with |
This comment has been minimized.
This comment has been minimized.
|
@bors retry |
|
❗ You can only retry pull requests that are approved and have a previously failed auto build. Hint: If you wanted to retry pull request CI instead, push the latest commit again, or close and then reopen this PR. |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
Yeah, changing features names for staying-unstable features can be a real pain. (I like partial stabilizing under new ones, personally, so the still-unstable stuff stays the same, but I know there are also reasons for the opposite.) |
View all comments
Tracking issue: #102070
Stabilized API
All used to be gated under
ptr_alignment_type, now stabilized underalignment_type:Things not getting stabilized
Remains under
ptr_alignment_type(but with a new tracking issue: #165719):Removed:
const trait impls
These are stabilized as non-const (see "Stabilized APIs"), but
constcounterparts remain unstable under the same feature gates:under
const_convert(#143773)under
const_default(#143894).under
const_cmp(#143800).under
const_clone(#142757).