Skip to content

compiler: Sort and doc ExternAbi variants - #142140

Merged
bors merged 2 commits into
rust-lang:masterfrom
workingjubilee:sort-extern-abi-variants
Jun 8, 2025
Merged

compiler: Sort and doc ExternAbi variants#142140
bors merged 2 commits into
rust-lang:masterfrom
workingjubilee:sort-extern-abi-variants

Conversation

@workingjubilee

@workingjubileeworkingjubilee commented Jun 7, 2025

Copy link
Copy Markdown
Member

My personal brainworms found this ordering made the most sense while writing the CanonAbi PR. It is an ordering, at least, unlike the current mess. There has been no particular reason for the previous order ever since #136901, despite the comment I delete here. I just didn't change it.

Because I feel weird just fussing with variant ordering in the source definition, I also documented a bunch to the best of my ability.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @lcnr

rustbot has assigned @lcnr.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 7, 2025

/* x86 */
/// `ExternAbi::C` but spelled funny because x86
Cdecl {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This isn't yet treated as an arch-specific ABI by the rest of the compiler but it will be as-of #141435

@bjorn3

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jun 7, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit f66487b has been approved by bjorn3

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 Jun 7, 2025
@bjorn3

Copy link
Copy Markdown
Member

r? bjorn3

@rustbotrustbot assigned bjorn3 and unassigned lcnrJun 7, 2025
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Jun 7, 2025
…iants, r=bjorn3
compiler: Sort and doc ExternAbi variants
My personal brainworms found this ordering made the most sense while writing the CanonAbi PR. It is *an* ordering, at least, unlike the current mess. There has been no particular reason for the previous order ever since rust-lang#136901, despite the comment I delete here. I just didn't change it.
Because I feel weird just fussing with variant ordering in the source definition, I also documented a bunch to the best of my ability.
bors added a commit that referenced this pull request Jun 7, 2025
Rollup of 14 pull requests
Successful merges:
- #138062 (Enable Non-determinism of float operations in Miri and change std tests )
- #140560 (Allow `#![doc(test(attr(..)))]` everywhere)
- #141001 (Make NonZero<char> possible)
- #141295 (Stabilize `if let` guards (`feature(if_let_guard)`))
- #141435 (Add (back) `unsupported_calling_conventions` lint to reject more invalid calling conventions)
- #141447 (Document representation of `Option<unsafe fn()>`)
- #142008 (const-eval error: always say in which item the error occurred)
- #142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
- #142065 (Stabilize `const_eq_ignore_ascii_case`)
- #142116 (Fix bootstrap tracing imports)
- #142126 (Treat normalizing consts like normalizing types in deeply normalize)
- #142140 (compiler: Sort and doc ExternAbi variants)
- #142148 (compiler: Treat ForceWarning as a Warning for diagnostic level)
- #142154 (get rid of spurious cfg(bootstrap))
r? `@ghost`
`@rustbot` modify labels: rollup
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 7, 2025
…iants, r=bjorn3
compiler: Sort and doc ExternAbi variants
My personal brainworms found this ordering made the most sense while writing the CanonAbi PR. It is *an* ordering, at least, unlike the current mess. There has been no particular reason for the previous order ever since rust-lang#136901, despite the comment I delete here. I just didn't change it.
Because I feel weird just fussing with variant ordering in the source definition, I also documented a bunch to the best of my ability.
This was referenced Jun 7, 2025
bors added a commit that referenced this pull request Jun 7, 2025
Rollup of 9 pull requests
Successful merges:
- #140560 (Allow `#![doc(test(attr(..)))]` everywhere)
- #141447 (Document representation of `Option<unsafe fn()>`)
- #141661 (Make the `dangerous_implicit_autorefs` lint deny-by-default)
- #142065 (Stabilize `const_eq_ignore_ascii_case`)
- #142116 (Fix bootstrap tracing imports)
- #142126 (Treat normalizing consts like normalizing types in deeply normalize)
- #142140 (compiler: Sort and doc ExternAbi variants)
- #142148 (compiler: Treat ForceWarning as a Warning for diagnostic level)
- #142154 (get rid of spurious cfg(bootstrap))
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 5f6d982 into rust-lang:masterJun 8, 2025
@rustbotrustbot added this to the 1.89.0 milestone Jun 8, 2025
rust-timer added a commit that referenced this pull request Jun 8, 2025
Rollup merge of #142140 - workingjubilee:sort-extern-abi-variants, r=bjorn3
compiler: Sort and doc ExternAbi variants
My personal brainworms found this ordering made the most sense while writing the CanonAbi PR. It is *an* ordering, at least, unlike the current mess. There has been no particular reason for the previous order ever since #136901, despite the comment I delete here. I just didn't change it.
Because I feel weird just fussing with variant ordering in the source definition, I also documented a bunch to the best of my ability.
@workingjubilee
workingjubilee deleted the sort-extern-abi-variants branch June 8, 2025 05:18
lnicola pushed a commit to lnicola/rust-analyzer that referenced this pull request Jun 9, 2025
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#140560 (Allow `#![doc(test(attr(..)))]` everywhere)
- rust-lang/rust#141447 (Document representation of `Option<unsafe fn()>`)
- rust-lang/rust#141661 (Make the `dangerous_implicit_autorefs` lint deny-by-default)
- rust-lang/rust#142065 (Stabilize `const_eq_ignore_ascii_case`)
- rust-lang/rust#142116 (Fix bootstrap tracing imports)
- rust-lang/rust#142126 (Treat normalizing consts like normalizing types in deeply normalize)
- rust-lang/rust#142140 (compiler: Sort and doc ExternAbi variants)
- rust-lang/rust#142148 (compiler: Treat ForceWarning as a Warning for diagnostic level)
- rust-lang/rust#142154 (get rid of spurious cfg(bootstrap))
r? `@ghost`
`@rustbot` modify labels: rollup
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-compilerRelevant to the compiler 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

@workingjubilee@rustbot@bjorn3@bors@lcnr