Repository navigation
core: Add examples and assembly tests for abort_immediate - #163575
Conversation
|
rustbot has assigned @JonathanBrouwer. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? libs |
This comment has been minimized.
This comment has been minimized.
557140b to
854e087
Compare
This comment has been minimized.
This comment has been minimized.
854e087 to
f9ee87d
Compare
This comment has been minimized.
This comment has been minimized.
f9ee87d to
a39b690
Compare
This comment has been minimized.
This comment has been minimized.
|
My scratch space for seeing what the various arches do https://rust.godbolt.org/z/Gs9jKPG7x |
a39b690 to
70d4713
Compare
|
@bors try jobs=test-x86_64-gnu-nopt,test-various,test-x86_64-gnu-llvm-22-* |
This comment has been minimized.
This comment has been minimized.
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-*
This comment has been minimized.
This comment has been minimized.
70d4713 to
9f595d3
Compare
|
@bors try jobs=test-x86_64-gnu-nopt,test-various,test-x86_64-gnu-llvm-22-* |
This comment has been minimized.
This comment has been minimized.
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-*
This comment has been minimized.
This comment has been minimized.
4de6e3a to
572ebd3
Compare
This comment has been minimized.
This comment has been minimized.
…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)
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #164632 (comment) |
|
This pull request was unapproved. This PR was contained in a rollup (#164632), which was unapproved. |
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.
572ebd3 to
c40b599
Compare
|
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. |
|
Intrinsics was renamed, updated. No try since PR CI should cover it @bors r=JohnTitor |
…=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
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)
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)
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)
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)
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
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)
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)
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)
View all comments
This isn't the most complicated function, but it currently isn't used
anywhere in-tree (typically
intrinsics::abortis used instead) andthere are no examples or tests. Copy the examples from
abortsincethis 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
breakpointon more platforms since these wereeasy to do together.
Tracking issue: #154601