Skip to content

core: Add examples and assembly tests for abort_immediate - #163575

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
tgross35:abort-immediate-update
Oct 21, 2026
Merged

rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
tgross35:abort-immediate-update

Conversation

@tgross35

@tgross35 tgross35 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

View all comments

This isn't the most complicated function, but it currently isn't used
anywhere in-tree (typically intrinsics::abort is used instead) and
there are no examples or tests. Copy the examples from abort since
this should behave similarly, and also cover it in an assembly test. We
don't really need the assembly check for any guarantees but it is handy
to reference what the intrinsic actually does, and will let us know if
anything changes.

I also added tests for breakpoint on more platforms since these were
easy to do together.

Tracking issue: #154601

@rustbot rustbot 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 1, 2026
@rustbot

rustbot commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 21 candidates

@tgross35

tgross35 commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

r? libs

@rustbot rustbot assigned JohnTitor and unassigned JonathanBrouwer Oct 1, 2026
@rust-log-analyzer

This comment has been minimized.

@tgross35
tgross35 force-pushed the abort-immediate-update branch from 557140b to 854e087 Compare October 1, 2026 02:25
@rust-log-analyzer

This comment has been minimized.

@tgross35
tgross35 force-pushed the abort-immediate-update branch from 854e087 to f9ee87d Compare October 1, 2026 03:03
@rust-log-analyzer

This comment has been minimized.

@tgross35
tgross35 force-pushed the abort-immediate-update branch from f9ee87d to a39b690 Compare October 1, 2026 04:01
@rust-log-analyzer

This comment has been minimized.

@tgross35

tgross35 commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

My scratch space for seeing what the various arches do https://rust.godbolt.org/z/Gs9jKPG7x

@tgross35
tgross35 force-pushed the abort-immediate-update branch from a39b690 to 70d4713 Compare October 1, 2026 05:27
@tgross35

tgross35 commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

@bors try jobs=test-x86_64-gnu-nopt,test-various,test-x86_64-gnu-llvm-22-*

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 1, 2026
core: Add examples and assembly tests for `abort_immediate`


try-job: test-x86_64-gnu-nopt
try-job: test-various
try-job: test-x86_64-gnu-llvm-22-*
@rust-log-analyzer

This comment has been minimized.

@tgross35
tgross35 force-pushed the abort-immediate-update branch from 70d4713 to 9f595d3 Compare October 1, 2026 18:48
@tgross35

tgross35 commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

@bors try jobs=test-x86_64-gnu-nopt,test-various,test-x86_64-gnu-llvm-22-*

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 1, 2026
core: Add examples and assembly tests for `abort_immediate`


try-job: test-x86_64-gnu-nopt
try-job: test-various
try-job: test-x86_64-gnu-llvm-22-*
@rust-bors

rust-bors Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 37b4513 (37b4513e2f97ccce286b5cd75747efaa239f81a1)
Base parent: 837b18a (837b18aae097503892d7aab6c7ddce332a991a21)

@rust-bors

This comment has been minimized.

@tgross35
tgross35 force-pushed the abort-immediate-update branch from 4de6e3a to 572ebd3 Compare October 2, 2026 19:25
@rustbot

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 20, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #163575 (core: Add examples and assembly tests for `abort_immediate`)
 - #163664 (Add new `RUSTC_BOOTSTRAP=-allow-unstable-compiler-flags` mode for testing stable compiler behavior in UI tests)
 - #163104 ([debuginfo] Emit `usize` and `isize` as typedefs)
 - #163338 (MIR move elimination [4/6]: MoveElimination)
 - #163701 (add ReadDir::dir to get the directory handle of the underlying directory)
 - #164488 (Don't try to skip anything in `Skip::advance_by(0)`)
 - #164578 (Don't ignore unknown LLVM diagnostics)
 - #164611 (Improve bit permutation codegen)
 - #164612 (std: Combine `is_powerpc64_feature_detected` into `is_powerpc_feature_detected`)
 - #162668 (document that `!` does bitwise and logical negation)
 - #164264 (lint: suggest `fXX::is_nan` for unsuffixed NaN comparisons)
 - #164509 (layout invariant: turn delayed bug back into proper assertion)
 - #164594 (rustdoc: Correctly handle inner `deprecated` attribute on modules)
 - #164629 (arch::breakpoint: avoid confusing 'equivalent' terminology)
@JonathanBrouwer

Copy link
Copy Markdown
Member

💔 I suspect this PR failed tests as part of a rollup
@bors r-

After fixing the problem, consider running a try job for the failed job before re-approving.

Link to failure: #164632 (comment)

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 20, 2026
@rust-bors

rust-bors Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

This PR was contained in a rollup (#164632), which was unapproved.

View changes since this unapproval

We can reuse the test setup for other intrinsics, saving a bit of build
time and repeated setup.
This isn't the most complicated function, but it currently isn't used
anywhere in-tree (typically `intrinsics::abort` is used instead) and
there are no examples or tests. Copy the examples from `abort` since
this should behave similarly, and also cover it in an assembly test. We
don't really need the assembly check for any guarantees but it is handy
to reference what the intrinsic actually does, and will let us know if
anything changes.

I also added tests for `breakpoint` on more platforms since these were
easy to do together.
@tgross35
tgross35 force-pushed the abort-immediate-update branch from 572ebd3 to c40b599 Compare October 20, 2026 22:03
@rustbot

rustbot commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

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.

@tgross35

Copy link
Copy Markdown
Member Author

Intrinsics was renamed, updated. No try since PR CI should cover it

@bors r=JohnTitor

@rust-bors

rust-bors Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit c40b599 has been tentatively approved by JohnTitor

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 20, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Oct 21, 2026
…=JohnTitor

core: Add examples and assembly tests for `abort_immediate`

This isn't the most complicated function, but it currently isn't used
anywhere in-tree (typically `intrinsics::abort` is used instead) and
there are no examples or tests. Copy the examples from `abort` since
this should behave similarly, and also cover it in an assembly test. We
don't really need the assembly check for any guarantees but it is handy
to reference what the intrinsic actually does, and will let us know if
anything changes.

I also added tests for `breakpoint` on more platforms since these were
easy to do together.

Tracking issue: rust-lang#154601
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup of 5 pull requests

Successful merges:

 - #164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - #163575 (core: Add examples and assembly tests for `abort_immediate`)
 - #163338 (MIR move elimination [4/6]: MoveElimination)
 - #163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - #164638 (Make mir-opt blessing work again)
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup of 5 pull requests

Successful merges:

 - #164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - #163575 (core: Add examples and assembly tests for `abort_immediate`)
 - #163338 (MIR move elimination [4/6]: MoveElimination)
 - #163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - #164638 (Make mir-opt blessing work again)
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup of 5 pull requests

Successful merges:

 - #164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - #163575 (core: Add examples and assembly tests for `abort_immediate`)
 - #163338 (MIR move elimination [4/6]: MoveElimination)
 - #163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - #164638 (Make mir-opt blessing work again)
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup of 5 pull requests



Successful merges:

 - #164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - #163575 (core: Add examples and assembly tests for `abort_immediate`)
 - #163338 (MIR move elimination [4/6]: MoveElimination)
 - #163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - #164638 (Make mir-opt blessing work again)
@rust-bors
rust-bors Bot merged commit 0f9655e into rust-lang:main Oct 21, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 21, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup merge of #163575 - tgross35:abort-immediate-update, r=JohnTitor

core: Add examples and assembly tests for `abort_immediate`

This isn't the most complicated function, but it currently isn't used
anywhere in-tree (typically `intrinsics::abort` is used instead) and
there are no examples or tests. Copy the examples from `abort` since
this should behave similarly, and also cover it in an assembly test. We
don't really need the assembly check for any guarantees but it is handy
to reference what the intrinsic actually does, and will let us know if
anything changes.

I also added tests for `breakpoint` on more platforms since these were
easy to do together.

Tracking issue: #154601
@tgross35
tgross35 deleted the abort-immediate-update branch October 21, 2026 19:29
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Oct 22, 2026
Rollup of 5 pull requests



Successful merges:

 - rust-lang/rust#164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - rust-lang/rust#163575 (core: Add examples and assembly tests for `abort_immediate`)
 - rust-lang/rust#163338 (MIR move elimination [4/6]: MoveElimination)
 - rust-lang/rust#163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - rust-lang/rust#164638 (Make mir-opt blessing work again)
programskillforverification pushed a commit to programskillforverification/miri that referenced this pull request Oct 22, 2026
Rollup of 5 pull requests



Successful merges:

 - rust-lang/rust#164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - rust-lang/rust#163575 (core: Add examples and assembly tests for `abort_immediate`)
 - rust-lang/rust#163338 (MIR move elimination [4/6]: MoveElimination)
 - rust-lang/rust#163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - rust-lang/rust#164638 (Make mir-opt blessing work again)
github-actions Bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Oct 25, 2026
Rollup of 5 pull requests



Successful merges:

 - rust-lang/rust#164672 (Bump `rustls-webpki` to 0.103.16 and `webpki-roots` to 1.0.10)
 - rust-lang/rust#163575 (core: Add examples and assembly tests for `abort_immediate`)
 - rust-lang/rust#163338 (MIR move elimination [4/6]: MoveElimination)
 - rust-lang/rust#163180 (Add more documentation for `chroot`, including an example and a manpage link)
 - rust-lang/rust#164638 (Make mir-opt blessing work again)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant 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