Skip to content

Add new Tier-3 target: riscv64a23-unknown-linux-gnu #145076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ZhongyaoChen
Copy link

MCP: Tier 3 target proposal: riscv64a23-unknown-linux-gnu

Changes:

  • add new target: riscv64a23-unknown-linux-gnu
  • add dockerfile for ci test
  • add target page

@rustbot
Copy link
Collaborator

rustbot commented Aug 8, 2025

r? @jdno

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

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Aug 8, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 8, 2025

These commits modify compiler targets.
(See the Target Tier Policy.)

Some changes occurred in src/doc/rustc/src/platform-support

cc @Noratrieb

@rustbot

This comment has been minimized.

@ZhongyaoChen ZhongyaoChen force-pushed the feature/add-tier3-riscv64a23-target branch from f77bc29 to 577b85a Compare August 8, 2025 03:41
Comment on lines +37 to +39
```bash
rustup target add riscv64a23-unknown-linux-gnu
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Tier 3 targets are usually not distributed via rustup, right?

Copy link
Member

Choose a reason for hiding this comment

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

Correct, this instruction would not work.

Copy link
Author

Choose a reason for hiding this comment

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

correct, you can ignore that for now, soon working in progess to promote it to tier-2

Copy link
Member

Choose a reason for hiding this comment

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

No, the target docs should accurately reflect the current reality, not the future intent. Remove it for now, you can add it when it's tier 2.

@rust-log-analyzer

This comment has been minimized.

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Tier 3 targets do not get built nor tested in rust-lang/rust CI, and by implication, no prebuilt artifacts will be distributed for Tier 3 targets.

Copy link
Member

Choose a reason for hiding this comment

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

Problem: Tier 3 targets do not get built nor tested in rust-lang/rust CI.

Copy link
Author

Choose a reason for hiding this comment

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

This Dockerfile is not intended for rust-lang/rust CI. Since rva23 hardware is currently unavailable, I want to provide everyone with a convenient and quick way to test locally. You can manually run tests using the following command:
DEPLOY=1 ./src/ci/docker/run.sh riscv64a23-gnu

Copy link
Member

Choose a reason for hiding this comment

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

These dockerfiles are our CI, please don't add them yet.

Copy link
Member

Choose a reason for hiding this comment

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

Please refrain from adding unused Dockerfiles. Previous disabled Docker files I believe were ran at some point, but broke and no one had the bandwidth/interest/expertise to fix them.

If anything, I rather delete disabled jobs that were broken for a long time.

Copy link
Author

Choose a reason for hiding this comment

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

ok, I will revert it.

Copy link
Author

Choose a reason for hiding this comment

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

Currently, I’m blocked by this aarch64-gnu-llvm-19-1 CI error and haven’t figure out a good way to fix it yet. can you help pls.

Comment on lines +24 to +25
The target is distributed through `rustup`, and otherwise require no
special configuration.
Copy link
Member

Choose a reason for hiding this comment

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

Problem: No, Tier 3 targets are not distributed through rustup, as Tier 3 targets are not built in rust-lang/rust CI, we only ship prebuilt artifacts for Tier 2+.

Copy link
Author

Choose a reason for hiding this comment

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

Okay, I’ll make changes later.

Comment on lines +37 to +39
```bash
rustup target add riscv64a23-unknown-linux-gnu
```
Copy link
Member

Choose a reason for hiding this comment

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

Correct, this instruction would not work.

@@ -40,6 +40,7 @@ static HOSTS: &[&str] = &[
"powerpc64le-unknown-linux-gnu",
"powerpc64le-unknown-linux-musl",
"riscv64gc-unknown-linux-gnu",
"riscv64a23-unknown-linux-gnu",
Copy link
Member

Choose a reason for hiding this comment

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

Problem: this and the other entry in build-manifest I think is wrong, because this is a Tier 3 target, and we don't ship prebuilt artifacts for Tier 3 targets?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for pointing it out. It seems I wrote it in the wrong place.

@@ -155,6 +156,7 @@ static TARGETS: &[&str] = &[
"riscv64gc-unknown-none-elf",
"riscv64gc-unknown-linux-gnu",
"riscv64gc-unknown-linux-musl",
"riscv64a23-unknown-linux-gnu",
Copy link
Member

Choose a reason for hiding this comment

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

Problem: see other comment about build-manifest

@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-19-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [ui] tests/ui/abi/cannot-be-called.rs#riscv32 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv32/cannot-be-called.riscv32.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
2   --> $DIR/cannot-be-called.rs:37:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/cannot-be-called.rs`

error in revision `riscv32`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/cannot-be-called.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,riscv32,riscv64,avr,msp430)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv32" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32i-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv32/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:37:8
   |
LL | extern "msp430-interrupt" fn msp430() {}
   |        ^^^^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:39:8
   |
LL | extern "avr-interrupt" fn avr() {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:45:8
   |
LL | extern "x86-interrupt" fn x86() {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:64:22
   |
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
   |                      ^^^^^^^^^^^^^^^

error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:70:25
   |
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
   |                         ^^^^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:88:22
   |
LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
   |                      ^^^^^^^^^^^^^^^

error: functions with the "riscv-interrupt-m" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:54:5
   |
LL |     riscv_m();
   |     ^^^^^^^^^
   |
note: an `extern "riscv-interrupt-m"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:54:5
   |
LL |     riscv_m();
   |     ^^^^^^^^^

error: functions with the "riscv-interrupt-s" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:56:5
   |
LL |     riscv_s();
   |     ^^^^^^^^^
   |
note: an `extern "riscv-interrupt-s"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:56:5
   |
LL |     riscv_s();
   |     ^^^^^^^^^

error: functions with the "riscv-interrupt-m" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:78:5
   |
LL |     f()
   |     ^^^
   |
note: an `extern "riscv-interrupt-m"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:78:5
   |
LL |     f()
   |     ^^^

error: functions with the "riscv-interrupt-s" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:84:5
   |
LL |     f()
   |     ^^^
   |
note: an `extern "riscv-interrupt-s"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:84:5
   |
LL |     f()
   |     ^^^

---
---- [ui] tests/ui/abi/cannot-be-called.rs#riscv64 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv64/cannot-be-called.riscv64.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
2   --> $DIR/cannot-be-called.rs:37:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/cannot-be-called.rs`

error in revision `riscv64`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/cannot-be-called.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,riscv32,riscv64,avr,msp430)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv64" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv64gc-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-called.riscv64/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:37:8
   |
LL | extern "msp430-interrupt" fn msp430() {}
   |        ^^^^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:39:8
   |
LL | extern "avr-interrupt" fn avr() {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:45:8
   |
LL | extern "x86-interrupt" fn x86() {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:64:22
   |
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
   |                      ^^^^^^^^^^^^^^^

error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:70:25
   |
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
   |                         ^^^^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:88:22
   |
LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
   |                      ^^^^^^^^^^^^^^^

error: functions with the "riscv-interrupt-m" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:54:5
   |
LL |     riscv_m();
   |     ^^^^^^^^^
   |
note: an `extern "riscv-interrupt-m"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:54:5
   |
LL |     riscv_m();
   |     ^^^^^^^^^

error: functions with the "riscv-interrupt-s" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:56:5
   |
LL |     riscv_s();
   |     ^^^^^^^^^
   |
note: an `extern "riscv-interrupt-s"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:56:5
   |
LL |     riscv_s();
   |     ^^^^^^^^^

error: functions with the "riscv-interrupt-m" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:78:5
   |
LL |     f()
   |     ^^^
   |
note: an `extern "riscv-interrupt-m"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:78:5
   |
LL |     f()
   |     ^^^

error: functions with the "riscv-interrupt-s" ABI cannot be called
##[error]  --> /checkout/tests/ui/abi/cannot-be-called.rs:84:5
   |
LL |     f()
   |     ^^^
   |
note: an `extern "riscv-interrupt-s"` function can only be called using inline assembly
  --> /checkout/tests/ui/abi/cannot-be-called.rs:84:5
   |
LL |     f()
   |     ^^^

---
---- [ui] tests/ui/abi/cannot-be-coroutine.rs#riscv32 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv32/cannot-be-coroutine.riscv32.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: functions with the "riscv-interrupt-m" ABI cannot be `async`
2   --> $DIR/cannot-be-coroutine.rs:44:1
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/cannot-be-coroutine.rs`

error in revision `riscv32`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/cannot-be-coroutine.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,riscv32,riscv64,avr,msp430)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv32" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2021" "--target=riscv32i-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv32/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: functions with the "riscv-interrupt-m" ABI cannot be `async`
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:44:1
   |
LL | async extern "riscv-interrupt-m" fn riscv_m() {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove the `async` keyword from this definition
   |
LL - async extern "riscv-interrupt-m" fn riscv_m() {
LL + extern "riscv-interrupt-m" fn riscv_m() {
   |

error: functions with the "riscv-interrupt-s" ABI cannot be `async`
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:48:1
   |
LL | async extern "riscv-interrupt-s" fn riscv_s() {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove the `async` keyword from this definition
   |
LL - async extern "riscv-interrupt-s" fn riscv_s() {
LL + extern "riscv-interrupt-s" fn riscv_s() {
   |

error: requires `ResumeTy` lang_item
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:32:19
   |
---
---- [ui] tests/ui/abi/cannot-be-coroutine.rs#riscv64 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv64/cannot-be-coroutine.riscv64.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: functions with the "riscv-interrupt-m" ABI cannot be `async`
2   --> $DIR/cannot-be-coroutine.rs:44:1
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/cannot-be-coroutine.rs`

error in revision `riscv64`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/cannot-be-coroutine.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,riscv32,riscv64,avr,msp430)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv64" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2021" "--target=riscv64gc-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/cannot-be-coroutine.riscv64/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: functions with the "riscv-interrupt-m" ABI cannot be `async`
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:44:1
   |
LL | async extern "riscv-interrupt-m" fn riscv_m() {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove the `async` keyword from this definition
   |
LL - async extern "riscv-interrupt-m" fn riscv_m() {
LL + extern "riscv-interrupt-m" fn riscv_m() {
   |

error: functions with the "riscv-interrupt-s" ABI cannot be `async`
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:48:1
   |
LL | async extern "riscv-interrupt-s" fn riscv_s() {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove the `async` keyword from this definition
   |
LL - async extern "riscv-interrupt-s" fn riscv_s() {
LL + extern "riscv-interrupt-s" fn riscv_s() {
   |

error: requires `ResumeTy` lang_item
##[error]  --> /checkout/tests/ui/abi/cannot-be-coroutine.rs:32:19
   |
---
error: aborting due to 3 previous errors
------------------------------------------


---- [ui] tests/ui/abi/compatibility.rs#riscv stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/compatibility.riscv/compatibility.riscv.stderr`
normalized stderr:
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)



The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/compatibility.rs`

error in revision `riscv`: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/compatibility.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv" "--check-cfg" "cfg(test,FALSE,host,i686,x86_64,x86_64_win,arm,aarch64,s390x,mips,mips64,sparc,sparc64,powerpc64,riscv,loongarch64,wasip1,bpf,m68k,csky,nvptx64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/compatibility.riscv" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv64gc-unknown-linux-gnu" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/compatibility.riscv/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
------------------------------------------


---- [ui] tests/ui/abi/debug.rs#riscv64 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/debug.riscv64/debug.riscv64.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: fn_abi_of(test) = FnAbi {
2            args: [
3                ArgAbi {


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/debug.rs`

error in revision `riscv64`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/debug.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64" "--check-cfg" "cfg(test,FALSE,generic,riscv64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/debug.riscv64" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-O" "--target" "riscv64gc-unknown-linux-gnu" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/debug.riscv64/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: fn_abi_of(test) = FnAbi {
           args: [
               ArgAbi {
                   layout: TyAndLayout {
                       ty: u8,
                       layout: Layout {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Zext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Direct(
                   ArgAttributes {
                       regular: NoUndef,
                       arg_ext: Zext,
                       pointee_size: Size(0 bytes),
                       pointee_align: None,
                   },
               ),
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:27:1
   |
LL | fn test(_x: u8) -> bool {
   | ^^^^^^^^^^^^^^^^^^^^^^^

error: fn_abi_of(TestFnPtr) = FnAbi {
           args: [
               ArgAbi {
                   layout: TyAndLayout {
                       ty: bool,
                       layout: Layout {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Zext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Direct(
                   ArgAttributes {
                       regular: NoUndef,
                       arg_ext: None,
                       pointee_size: Size(0 bytes),
                       pointee_align: None,
                   },
               ),
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:33:1
   |
LL | type TestFnPtr = fn(bool) -> u8; //~ ERROR: fn_abi
   | ^^^^^^^^^^^^^^

error: fn_abi_of(test_generic) = FnAbi {
           args: [
               ArgAbi {
                   layout: TyAndLayout {
                       ty: *const T,
                       layout: Layout {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: None,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:36:1
   |
LL | fn test_generic<T>(_x: *const T) {} //~ ERROR: fn_abi
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
##[error]  --> /checkout/tests/ui/abi/debug.rs:39:1
   |
LL | const C: () = (); //~ ERROR: can only be applied to
   | ^^^^^^^^^^^

error: ABIs are not compatible
       left ABI = FnAbi {
           args: [
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Zext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
       right ABI = FnAbi {
           args: [
               ArgAbi {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Sext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:55:1
   |
LL | type TestAbiNe = (fn(u8), fn(u32)); //~ ERROR: ABIs are not compatible
   | ^^^^^^^^^^^^^^

error: ABIs are not compatible
       left ABI = FnAbi {
           args: [
---
                           unadjusted_abi_align: Align(1 bytes),
                           randomization_seed: 71776127651151905,
                       },
                   },
                   mode: Indirect {
                       attrs: ArgAttributes {
                           regular: NoAlias | NoCapture | NonNull | NoUndef,
                           arg_ext: None,
                           pointee_size: Size(32 bytes),
                           pointee_align: Some(
                               Align(1 bytes),
                           ),
                       },
                       meta_attrs: None,
                       on_stack: false,
                   },
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
       right ABI = FnAbi {
           args: [
               ArgAbi {
---
                           unadjusted_abi_align: Align(4 bytes),
                           randomization_seed: 18446462607322841123,
                       },
                   },
                   mode: Indirect {
                       attrs: ArgAttributes {
                           regular: NoAlias | NoCapture | NonNull | NoUndef,
                           arg_ext: None,
                           pointee_size: Size(128 bytes),
                           pointee_align: Some(
                               Align(4 bytes),
                           ),
                       },
                       meta_attrs: None,
                       on_stack: false,
                   },
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:58:1
   |
LL | type TestAbiNeLarger = (fn([u8; 32]), fn([u32; 32])); //~ ERROR: ABIs are not compatible
   | ^^^^^^^^^^^^^^^^^^^^

error: ABIs are not compatible
       left ABI = FnAbi {
           args: [
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: None,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
       right ABI = FnAbi {
           args: [
               ArgAbi {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Sext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:61:1
   |
LL | type TestAbiNeFloat = (fn(f32), fn(u32)); //~ ERROR: ABIs are not compatible
   | ^^^^^^^^^^^^^^^^^^^

error: ABIs are not compatible
       left ABI = FnAbi {
           args: [
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Sext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
       right ABI = FnAbi {
           args: [
               ArgAbi {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoUndef,
                           arg_ext: Sext,
                           pointee_size: Size(0 bytes),
                           pointee_align: None,
                       },
                   ),
               },
           ],
           ret: ArgAbi {
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:65:1
   |
LL | type TestAbiNeSign = (fn(i32), fn(u32)); //~ ERROR: ABIs are not compatible
   | ^^^^^^^^^^^^^^^^^^

error[E0277]: the size for values of type `str` cannot be known at compilation time
##[error]  --> /checkout/tests/ui/abi/debug.rs:68:46
   |
LL | type TestAbiEqNonsense = (fn((str, str)), fn((str, str))); //~ ERROR: cannot be known at compilation time
   |                                              ^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: only the last element of a tuple may have a dynamically sized type

error: unrecognized argument
##[error]  --> /checkout/tests/ui/abi/debug.rs:70:13
   |
LL | #[rustc_abi("assert_eq")] //~ ERROR unrecognized argument
   |             ^^^^^^^^^^^

error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
##[error]  --> /checkout/tests/ui/abi/debug.rs:43:5
   |
LL |     const C: () = (); //~ ERROR: can only be applied to
   |     ^^^^^^^^^^^

error: fn_abi_of(assoc_test) = FnAbi {
           args: [
               ArgAbi {
                   layout: TyAndLayout {
                       ty: &S,
                       layout: Layout {
---
                       },
                   },
                   mode: Direct(
                       ArgAttributes {
                           regular: NoAlias | NonNull | ReadOnly | NoUndef,
                           arg_ext: None,
                           pointee_size: Size(2 bytes),
                           pointee_align: Some(
                               Align(2 bytes),
                           ),
                       },
                   ),
               },
           ],
---
                   },
               },
               mode: Ignore,
           },
           c_variadic: false,
           fixed_count: 1,
           conv: Rust,
           can_unwind: false,
       }
  --> /checkout/tests/ui/abi/debug.rs:48:5
   |
LL |     fn assoc_test(&self) {} //~ ERROR: fn_abi
   |     ^^^^^^^^^^^^^^^^^^^^

error: aborting due to 12 previous errors

For more information about this error, try `rustc --explain E0277`.
------------------------------------------


---- [ui] tests/ui/abi/riscv-discoverability-guidance.rs#riscv32 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv32/riscv-discoverability-guidance.riscv32.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0703]: invalid ABI: found `riscv-interrupt`
2   --> $DIR/riscv-discoverability-guidance.rs:15:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/riscv-discoverability-guidance.rs`

error in revision `riscv32`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/riscv-discoverability-guidance.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32" "--check-cfg" "cfg(test,FALSE,riscv32,riscv64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv32" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32i-unknown-none-elf" "-C" "target-feature=-unaligned-scalar-mem" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv32/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0703]: invalid ABI: found `riscv-interrupt`
##[error]  --> /checkout/tests/ui/abi/riscv-discoverability-guidance.rs:15:8
   |
LL | extern "riscv-interrupt" fn isr() {}
   |        ^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `riscv-interrupt-m`
   |
LL | extern "riscv-interrupt-m" fn isr() {}
   |                        ++

error[E0703]: invalid ABI: found `riscv-interrupt-u`
##[error]  --> /checkout/tests/ui/abi/riscv-discoverability-guidance.rs:20:8
   |
LL | extern "riscv-interrupt-u" fn isr_U() {}
   |        ^^^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `riscv-interrupt-m`
   |
LL - extern "riscv-interrupt-u" fn isr_U() {}
LL + extern "riscv-interrupt-m" fn isr_U() {}
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0703`.
------------------------------------------


---- [ui] tests/ui/abi/riscv-discoverability-guidance.rs#riscv64 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv64/riscv-discoverability-guidance.riscv64.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0703]: invalid ABI: found `riscv-interrupt`
2   --> $DIR/riscv-discoverability-guidance.rs:15:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/riscv-discoverability-guidance.rs`

error in revision `riscv64`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/riscv-discoverability-guidance.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64" "--check-cfg" "cfg(test,FALSE,riscv32,riscv64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv64" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv64gc-unknown-none-elf" "-C" "target-feature=-unaligned-scalar-mem" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/riscv-discoverability-guidance.riscv64/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0703]: invalid ABI: found `riscv-interrupt`
##[error]  --> /checkout/tests/ui/abi/riscv-discoverability-guidance.rs:15:8
   |
LL | extern "riscv-interrupt" fn isr() {}
   |        ^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `riscv-interrupt-m`
   |
LL | extern "riscv-interrupt-m" fn isr() {}
   |                        ++

error[E0703]: invalid ABI: found `riscv-interrupt-u`
##[error]  --> /checkout/tests/ui/abi/riscv-discoverability-guidance.rs:20:8
   |
LL | extern "riscv-interrupt-u" fn isr_U() {}
   |        ^^^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `riscv-interrupt-m`
   |
LL - extern "riscv-interrupt-u" fn isr_U() {}
LL + extern "riscv-interrupt-m" fn isr_U() {}
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0703`.
------------------------------------------


---- [ui] tests/ui/abi/unsupported.rs#riscv32 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv32/unsupported.riscv32.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0570]: "ptx-kernel" is not a supported ABI for the current target
2   --> $DIR/unsupported.rs:36:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/unsupported.rs`

error in revision `riscv32`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/unsupported.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,aarch64,arm,riscv32,riscv64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv32" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32i-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv32/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:36:8
   |
LL | extern "ptx-kernel" fn ptx() {}
   |        ^^^^^^^^^^^^

error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:38:22
   |
LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
   |                      ^^^^^^^^^^^^

error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:42:8
   |
LL | extern "ptx-kernel" {}
   |        ^^^^^^^^^^^^

error[E0570]: "gpu-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:44:8
   |
LL | extern "gpu-kernel" fn gpu() {}
   |        ^^^^^^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:47:8
   |
LL | extern "aapcs" fn aapcs() {}
   |        ^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:49:24
   |
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
   |                        ^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:53:8
   |
LL | extern "aapcs" {}
   |        ^^^^^^^

error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:56:8
   |
LL | extern "msp430-interrupt" {}
   |        ^^^^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:59:8
   |
LL | extern "avr-interrupt" {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:65:8
   |
LL | extern "x86-interrupt" {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:68:8
   |
LL | extern "thiscall" fn thiscall() {}
   |        ^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:70:27
   |
LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
   |                           ^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:74:8
   |
---
   |
LL | extern "stdcall" fn stdcall() {}
   |        ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:81:26
   |
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
   |                          ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:87:8
   |
LL | extern "stdcall" {}
   |        ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall-unwind" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:91:8
   |
LL | extern "stdcall-unwind" {}
   |        ^^^^^^^^^^^^^^^^
   |
   = help: if you need `extern "stdcall-unwind"` on win32 and `extern "C-unwind"` everywhere else, use `extern "system-unwind"`

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:111:8
   |
LL | extern "vectorcall" fn vectorcall() {}
   |        ^^^^^^^^^^^^

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:113:29
   |
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
   |                             ^^^^^^^^^^^^

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:117:8
   |
LL | extern "vectorcall" {}
   |        ^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-call" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:120:28
   |
LL | fn cmse_call_ptr(f: extern "cmse-nonsecure-call" fn()) {
   |                            ^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:125:8
   |
LL | extern "cmse-nonsecure-entry" fn cmse_entry() {}
   |        ^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:127:29
   |
LL | fn cmse_entry_ptr(f: extern "cmse-nonsecure-entry" fn()) {
   |                             ^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:131:8
   |
LL | extern "cmse-nonsecure-entry" {}
   |        ^^^^^^^^^^^^^^^^^^^^^^

warning: "cdecl" is not a supported ABI for the current target
##[warning]  --> /checkout/tests/ui/abi/unsupported.rs:99:17
   |
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
   |                 ^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
   = help: use `extern "C"` instead
---

warning: "cdecl" is not a supported ABI for the current target
##[warning]  --> /checkout/tests/ui/abi/unsupported.rs:96:1
   |
LL | extern "cdecl" fn cdecl() {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
   = help: use `extern "C"` instead
---
---- [ui] tests/ui/abi/unsupported.rs#riscv64 stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv64/unsupported.riscv64.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0570]: "ptx-kernel" is not a supported ABI for the current target
2   --> $DIR/unsupported.rs:36:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args abi/unsupported.rs`

error in revision `riscv64`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/abi/unsupported.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64" "--check-cfg" "cfg(test,FALSE,x64,x64_win,i686,aarch64,arm,riscv32,riscv64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv64" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv64gc-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/abi/unsupported.riscv64/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:36:8
   |
LL | extern "ptx-kernel" fn ptx() {}
   |        ^^^^^^^^^^^^

error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:38:22
   |
LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
   |                      ^^^^^^^^^^^^

error[E0570]: "ptx-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:42:8
   |
LL | extern "ptx-kernel" {}
   |        ^^^^^^^^^^^^

error[E0570]: "gpu-kernel" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:44:8
   |
LL | extern "gpu-kernel" fn gpu() {}
   |        ^^^^^^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:47:8
   |
LL | extern "aapcs" fn aapcs() {}
   |        ^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:49:24
   |
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
   |                        ^^^^^^^

error[E0570]: "aapcs" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:53:8
   |
LL | extern "aapcs" {}
   |        ^^^^^^^

error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:56:8
   |
LL | extern "msp430-interrupt" {}
   |        ^^^^^^^^^^^^^^^^^^

error[E0570]: "avr-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:59:8
   |
LL | extern "avr-interrupt" {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "x86-interrupt" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:65:8
   |
LL | extern "x86-interrupt" {}
   |        ^^^^^^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:68:8
   |
LL | extern "thiscall" fn thiscall() {}
   |        ^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:70:27
   |
LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
   |                           ^^^^^^^^^^

error[E0570]: "thiscall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:74:8
   |
---
   |
LL | extern "stdcall" fn stdcall() {}
   |        ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:81:26
   |
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
   |                          ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:87:8
   |
LL | extern "stdcall" {}
   |        ^^^^^^^^^
   |
   = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`

error[E0570]: "stdcall-unwind" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:91:8
   |
LL | extern "stdcall-unwind" {}
   |        ^^^^^^^^^^^^^^^^
   |
   = help: if you need `extern "stdcall-unwind"` on win32 and `extern "C-unwind"` everywhere else, use `extern "system-unwind"`

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:111:8
   |
LL | extern "vectorcall" fn vectorcall() {}
   |        ^^^^^^^^^^^^

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:113:29
   |
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
   |                             ^^^^^^^^^^^^

error[E0570]: "vectorcall" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:117:8
   |
LL | extern "vectorcall" {}
   |        ^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-call" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:120:28
   |
LL | fn cmse_call_ptr(f: extern "cmse-nonsecure-call" fn()) {
   |                            ^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:125:8
   |
LL | extern "cmse-nonsecure-entry" fn cmse_entry() {}
   |        ^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:127:29
   |
LL | fn cmse_entry_ptr(f: extern "cmse-nonsecure-entry" fn()) {
   |                             ^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: "cmse-nonsecure-entry" is not a supported ABI for the current target
##[error]  --> /checkout/tests/ui/abi/unsupported.rs:131:8
   |
LL | extern "cmse-nonsecure-entry" {}
   |        ^^^^^^^^^^^^^^^^^^^^^^

warning: "cdecl" is not a supported ABI for the current target
##[warning]  --> /checkout/tests/ui/abi/unsupported.rs:99:17
   |
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
   |                 ^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
   = help: use `extern "C"` instead
---

warning: "cdecl" is not a supported ABI for the current target
##[warning]  --> /checkout/tests/ui/abi/unsupported.rs:96:1
   |
LL | extern "cdecl" fn cdecl() {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
   = help: use `extern "C"` instead
---
------------------------------------------


---- [ui] tests/ui/asm/riscv/bad-reg.rs#riscv32e stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32e/bad-reg.riscv32e.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
2   --> $DIR/bad-reg.rs:33:18
3    |

154 LL |         asm!("", out("x31") _);
155    |                  ^^^^^^^^^^^^
156 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:80:26
-    |
- LL |         asm!("/* {} */", in(freg) f);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:82:26
-    |
- LL |         asm!("/* {} */", out(freg) _);
-    |                          ^^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:84:26
-    |
- LL |         asm!("/* {} */", in(freg) d);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:87:26
-    |
- LL |         asm!("/* {} */", out(freg) d);
-    |                          ^^^^^^^^^^^
- 
181 error: type `i32` cannot be used with this register class
182   --> $DIR/bad-reg.rs:94:27
183    |

202    |
203    = note: register class `vreg` supports these types: 
204 
- error: aborting due to 33 previous errors
+ error: aborting due to 29 previous errors; 1 warning emitted
206 
207 


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv32e`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32e" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32e" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv32e-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32e/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^

error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:41:18
   |
LL |         asm!("", out("tp") _);
   |                  ^^^^^^^^^^^

error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:43:18
   |
LL |         asm!("", out("zero") _);
   |                  ^^^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:18
   |
LL |         asm!("", in("v0") x);
   |                  ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:18
   |
LL |         asm!("", out("v0") x);
   |                  ^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:26
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                          ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:103:26
   |
LL |         asm!("/* {} */", out(vreg) _);
   |                          ^^^^^^^^^^^

error: cannot use register `x16`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:46:18
   |
LL |         asm!("", out("x16") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x17`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:48:18
   |
LL |         asm!("", out("x17") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x18`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:50:18
   |
LL |         asm!("", out("x18") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x19`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:52:18
   |
LL |         asm!("", out("x19") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x20`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:54:18
   |
LL |         asm!("", out("x20") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x21`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:56:18
   |
LL |         asm!("", out("x21") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x22`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:58:18
   |
LL |         asm!("", out("x22") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x23`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:60:18
   |
LL |         asm!("", out("x23") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x24`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:62:18
   |
LL |         asm!("", out("x24") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x25`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:64:18
   |
LL |         asm!("", out("x25") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x26`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:66:18
   |
LL |         asm!("", out("x26") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x27`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:68:18
   |
LL |         asm!("", out("x27") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x28`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:70:18
   |
LL |         asm!("", out("x28") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x29`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:72:18
   |
LL |         asm!("", out("x29") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x30`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:74:18
   |
LL |         asm!("", out("x30") _);
   |                  ^^^^^^^^^^^^

error: cannot use register `x31`: register can't be used with the `e` target feature
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:76:18
   |
LL |         asm!("", out("x31") _);
   |                  ^^^^^^^^^^^^

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:27
   |
LL |         asm!("", in("v0") x);
   |                           ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:28
   |
LL |         asm!("", out("v0") x);
   |                            ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:35
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                                   ^
   |
   = note: register class `vreg` supports these types: 

error: aborting due to 29 previous errors; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/asm/riscv/bad-reg.rs#riscv32i stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32i/bad-reg.riscv32i.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
2   --> $DIR/bad-reg.rs:33:18
3    |

58 LL |         asm!("/* {} */", out(vreg) _);
59    |                          ^^^^^^^^^^^
60 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:80:26
-    |
- LL |         asm!("/* {} */", in(freg) f);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:82:26
-    |
- LL |         asm!("/* {} */", out(freg) _);
-    |                          ^^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:84:26
-    |
- LL |         asm!("/* {} */", in(freg) d);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:87:26
-    |
- LL |         asm!("/* {} */", out(freg) d);
-    |                          ^^^^^^^^^^^
- 
85 error: type `i32` cannot be used with this register class
86   --> $DIR/bad-reg.rs:94:27
87    |

106    |
107    = note: register class `vreg` supports these types: 
108 
- error: aborting due to 17 previous errors
+ error: aborting due to 13 previous errors
110 
111 


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv32i`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32i" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32i" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv32i-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32i/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^

error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:41:18
   |
LL |         asm!("", out("tp") _);
   |                  ^^^^^^^^^^^

error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:43:18
   |
LL |         asm!("", out("zero") _);
   |                  ^^^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:18
   |
LL |         asm!("", in("v0") x);
   |                  ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:18
   |
LL |         asm!("", out("v0") x);
   |                  ^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:26
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                          ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:103:26
   |
LL |         asm!("/* {} */", out(vreg) _);
   |                          ^^^^^^^^^^^

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:27
   |
LL |         asm!("", in("v0") x);
   |                           ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:28
   |
LL |         asm!("", out("v0") x);
   |                            ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:35
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                                   ^
   |
   = note: register class `vreg` supports these types: 

error: aborting due to 13 previous errors
------------------------------------------


---- [ui] tests/ui/asm/riscv/bad-reg.rs#riscv32gc stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32gc/bad-reg.riscv32gc.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
2   --> $DIR/bad-reg.rs:33:18
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv32gc`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32gc" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32gc" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv32gc-unknown-linux-gnu" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32gc/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^
---
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv32imafc`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32imafc" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32imafc" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv32imafc-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv32imafc/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^

error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:41:18
   |
LL |         asm!("", out("tp") _);
   |                  ^^^^^^^^^^^

error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:43:18
   |
LL |         asm!("", out("zero") _);
   |                  ^^^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:18
   |
LL |         asm!("", in("v0") x);
   |                  ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:18
   |
LL |         asm!("", out("v0") x);
   |                  ^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:26
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                          ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:103:26
   |
LL |         asm!("/* {} */", out(vreg) _);
   |                          ^^^^^^^^^^^

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:27
   |
LL |         asm!("", in("v0") x);
   |                           ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:28
   |
LL |         asm!("", out("v0") x);
   |                            ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:35
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                                   ^
   |
   = note: register class `vreg` supports these types: 

error: aborting due to 13 previous errors
------------------------------------------


---- [ui] tests/ui/asm/riscv/bad-reg.rs#riscv64gc stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64gc/bad-reg.riscv64gc.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
2   --> $DIR/bad-reg.rs:33:18
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv64gc`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64gc" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64gc" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv64gc-unknown-linux-gnu" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64gc/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^

error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:41:18
   |
LL |         asm!("", out("tp") _);
   |                  ^^^^^^^^^^^

error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:43:18
   |
LL |         asm!("", out("zero") _);
   |                  ^^^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:18
   |
LL |         asm!("", in("v0") x);
   |                  ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:18
   |
LL |         asm!("", out("v0") x);
   |                  ^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:26
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                          ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:103:26
   |
LL |         asm!("/* {} */", out(vreg) _);
   |                          ^^^^^^^^^^^

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:27
   |
LL |         asm!("", in("v0") x);
   |                           ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:28
   |
LL |         asm!("", out("v0") x);
   |                            ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:35
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                                   ^
   |
   = note: register class `vreg` supports these types: 

error: aborting due to 13 previous errors
------------------------------------------


---- [ui] tests/ui/asm/riscv/bad-reg.rs#riscv64imac stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64imac/bad-reg.riscv64imac.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
2   --> $DIR/bad-reg.rs:33:18
3    |

58 LL |         asm!("/* {} */", out(vreg) _);
59    |                          ^^^^^^^^^^^
60 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:80:26
-    |
- LL |         asm!("/* {} */", in(freg) f);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:82:26
-    |
- LL |         asm!("/* {} */", out(freg) _);
-    |                          ^^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:84:26
-    |
- LL |         asm!("/* {} */", in(freg) d);
-    |                          ^^^^^^^^^^
- 
- error: register class `freg` requires at least one of the following target features: d, f
-   --> $DIR/bad-reg.rs:87:26
-    |
- LL |         asm!("/* {} */", out(freg) d);
-    |                          ^^^^^^^^^^^
- 
85 error: type `i32` cannot be used with this register class
86   --> $DIR/bad-reg.rs:94:27
87    |

106    |
107    = note: register class `vreg` supports these types: 
108 
- error: aborting due to 17 previous errors
+ error: aborting due to 13 previous errors
110 
111 
---
To only update this specific test, also pass `--test-args asm/riscv/bad-reg.rs`

error in revision `riscv64imac`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/bad-reg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64imac" "--check-cfg" "cfg(test,FALSE,riscv32i,riscv32imafc,riscv32gc,riscv32e,riscv64imac,riscv64gc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64imac" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target" "riscv64imac-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/bad-reg.riscv64imac/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:33:18
   |
LL |         asm!("", out("s1") _);
   |                  ^^^^^^^^^^^

error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:35:18
   |
LL |         asm!("", out("fp") _);
   |                  ^^^^^^^^^^^

error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:37:18
   |
LL |         asm!("", out("sp") _);
   |                  ^^^^^^^^^^^

error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:39:18
   |
LL |         asm!("", out("gp") _);
   |                  ^^^^^^^^^^^

error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:41:18
   |
LL |         asm!("", out("tp") _);
   |                  ^^^^^^^^^^^

error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:43:18
   |
LL |         asm!("", out("zero") _);
   |                  ^^^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:18
   |
LL |         asm!("", in("v0") x);
   |                  ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:18
   |
LL |         asm!("", out("v0") x);
   |                  ^^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:26
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                          ^^^^^^^^^^

error: register class `vreg` can only be used as a clobber, not as an input or output
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:103:26
   |
LL |         asm!("/* {} */", out(vreg) _);
   |                          ^^^^^^^^^^^

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:94:27
   |
LL |         asm!("", in("v0") x);
   |                           ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:97:28
   |
LL |         asm!("", out("v0") x);
   |                            ^
   |
   = note: register class `vreg` supports these types: 

error: type `i32` cannot be used with this register class
##[error]  --> /checkout/tests/ui/asm/riscv/bad-reg.rs:100:35
   |
LL |         asm!("/* {} */", in(vreg) x);
   |                                   ^
   |
   = note: register class `vreg` supports these types: 

error: aborting due to 13 previous errors
------------------------------------------


---- [ui] tests/ui/asm/riscv/riscv32e-registers.rs#riscv32e stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32e/riscv32e-registers.riscv32e.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: invalid operand for instruction
---
The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/riscv32e-registers.rs`

error in revision `riscv32e`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/riscv32e-registers.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32e" "--check-cfg" "cfg(test,FALSE,riscv32e,riscv32em,riscv32emc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32e" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=rlib" "--target=riscv32e-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32e/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:42:11
   |
LL |     asm!("li x16, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x16, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:45:11
   |
LL |     asm!("li x17, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x17, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:48:11
   |
LL |     asm!("li x18, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x18, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:51:11
   |
LL |     asm!("li x19, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x19, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:54:11
   |
LL |     asm!("li x20, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x20, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:57:11
   |
LL |     asm!("li x21, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x21, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:60:11
   |
LL |     asm!("li x22, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x22, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:63:11
   |
LL |     asm!("li x23, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x23, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:66:11
   |
LL |     asm!("li x24, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x24, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:69:11
   |
LL |     asm!("li x25, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x25, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:72:11
   |
LL |     asm!("li x26, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x26, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:75:11
   |
LL |     asm!("li x27, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x27, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:78:11
   |
LL |     asm!("li x28, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x28, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:81:11
   |
LL |     asm!("li x29, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x29, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:84:11
   |
LL |     asm!("li x30, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x30, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:87:11
   |
LL |     asm!("li x31, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x31, 0
   |        ^

error: aborting due to 16 previous errors; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/asm/riscv/riscv32e-registers.rs#riscv32em stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32em/riscv32e-registers.riscv32em.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: invalid operand for instruction
---
The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args asm/riscv/riscv32e-registers.rs`

error in revision `riscv32em`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/riscv32e-registers.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32em" "--check-cfg" "cfg(test,FALSE,riscv32e,riscv32em,riscv32emc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32em" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=rlib" "--target=riscv32em-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32em/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:42:11
   |
LL |     asm!("li x16, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x16, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:45:11
   |
LL |     asm!("li x17, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x17, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:48:11
   |
LL |     asm!("li x18, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x18, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:51:11
   |
LL |     asm!("li x19, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x19, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:54:11
   |
LL |     asm!("li x20, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x20, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:57:11
   |
LL |     asm!("li x21, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x21, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:60:11
   |
LL |     asm!("li x22, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x22, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:63:11
   |
LL |     asm!("li x23, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x23, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:66:11
   |
LL |     asm!("li x24, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x24, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:69:11
   |
LL |     asm!("li x25, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x25, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:72:11
   |
LL |     asm!("li x26, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x26, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:75:11
   |
LL |     asm!("li x27, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x27, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:78:11
   |
LL |     asm!("li x28, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x28, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:81:11
   |
LL |     asm!("li x29, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x29, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:84:11
   |
LL |     asm!("li x30, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x30, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:87:11
   |
LL |     asm!("li x31, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x31, 0
   |        ^

error: aborting due to 16 previous errors; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/asm/riscv/riscv32e-registers.rs#riscv32emc stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32emc/riscv32e-registers.riscv32emc.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: invalid operand for instruction
---
To only update this specific test, also pass `--test-args asm/riscv/riscv32e-registers.rs`

error in revision `riscv32emc`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/riscv/riscv32e-registers.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv32emc" "--check-cfg" "cfg(test,FALSE,riscv32e,riscv32em,riscv32emc)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32emc" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=rlib" "--target=riscv32emc-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/asm/riscv/riscv32e-registers.riscv32emc/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:42:11
   |
LL |     asm!("li x16, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x16, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:45:11
   |
LL |     asm!("li x17, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x17, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:48:11
   |
LL |     asm!("li x18, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x18, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:51:11
   |
LL |     asm!("li x19, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x19, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:54:11
   |
LL |     asm!("li x20, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x20, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:57:11
   |
LL |     asm!("li x21, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x21, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:60:11
   |
LL |     asm!("li x22, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x22, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:63:11
   |
LL |     asm!("li x23, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x23, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:66:11
   |
LL |     asm!("li x24, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x24, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:69:11
   |
LL |     asm!("li x25, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x25, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:72:11
   |
LL |     asm!("li x26, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x26, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:75:11
   |
LL |     asm!("li x27, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x27, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:78:11
   |
LL |     asm!("li x28, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x28, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:81:11
   |
LL |     asm!("li x29, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x29, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:84:11
   |
LL |     asm!("li x30, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x30, 0
   |        ^

error: invalid operand for instruction
##[error]  --> /checkout/tests/ui/asm/riscv/riscv32e-registers.rs:87:11
   |
LL |     asm!("li x31, 0");
   |           ^^^^^^^^^
   |
note: instantiated into assembly here
  --> <inline asm>:1:5
   |
LL |     li x31, 0
   |        ^

error: aborting due to 16 previous errors; 1 warning emitted
---
244 `sb`
245 `scq`
246 `sha`

292 `soft-float`
293 `spe`
294 `ssbs`
+ `ssccptr`
+ `sscofpmf`
+ `sscounterenw`
295 `sse`
296 `sse2`
297 `sse3`

298 `sse4.1`
299 `sse4.2`
300 `sse4a`
+ `ssnpm`
301 `ssse3`
+ `sstc`
+ `sstvala`
+ `sstvecd`
+ `ssu64xl`
302 `ssve-fp8dot2`
303 `ssve-fp8dot4`
304 `ssve-fp8fma`

+ `supm`
+ `svade`
+ `svbare`
305 `sve`
306 `sve-b16b16`
307 `sve2`

310 `sve2-sha3`
311 `sve2-sm4`
312 `sve2p1`
+ `svinval`
+ `svnapot`
+ `svpbmt`
313 `tail-call`
314 `tbm`
315 `thumb-mode`


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args check-cfg/target_feature.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/check-cfg/target_feature.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/check-cfg/target_feature" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--check-cfg=cfg()" "-Zcheck-cfg-all-expected"
stdout: none
--- stderr -------------------------------
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
##[warning]  --> /checkout/tests/ui/check-cfg/target_feature.rs:16:10
   |
LL |     cfg!(target_feature = "_UNEXPECTED_VALUE");
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: expected values for `target_feature` are: `10e60`, `2e3`, `3e3r1`, `3e3r2`, `3e3r3`, `3e7`, `7e10`, `a`, `aclass`, `adx`, `aes`, `altivec`, `alu32`, `amx-avx512`, `amx-bf16`, `amx-complex`, `amx-fp16`, `amx-fp8`, `amx-int8`, `amx-movrs`, `amx-tf32`, `amx-tile`, `amx-transpose`, `apxf`, `atomics`, `avx`, `avx10.1`, `avx10.2`, `avx2`, `avx512bf16`, `avx512bitalg`, `avx512bw`, `avx512cd`, `avx512dq`, `avx512f`, `avx512fp16`, `avx512ifma`, `avx512vbmi`, `avx512vbmi2`, `avx512vl`, `avx512vnni`, `avx512vp2intersect`, `avx512vpopcntdq`, `avxifma`, `avxneconvert`, `avxvnni`, `avxvnniint16`, `avxvnniint8`, `b`, `backchain`, `bf16`, `bmi1`, `bmi2`, `bti`, `bulk-memory`, `c`, `cache`, `cmpxchg16b`, `concurrent-functions`, `crc`, `crt-static`, `cssc`, `d`, `d32`, `deflate-conversion`, `dit`, `div32`, `doloop`, `dotprod`, `dpb`, `dpb2`, `dsp`, `dsp1e2`, `dspe60`, `e`, `e1`, `e2`, `ecv`, `edsp`, `elrw`, `enhanced-sort`, `ermsb`, `exception-handling`, `extended-const`, `f`, `f16c`, `f32mm`, `f64mm`, `faminmax`, `fcma`, `fdivdu`, `fhm`, `flagm`, `flagm2`, `float1e2`, `float1e3`, `float3e4`, `float7e60`, `floate1`, `fma`, `fp-armv8`, `fp16`, `fp64`, `fp8`, `fp8dot2`, `fp8dot4`, `fp8fma`, `fpregs`, `fpuv2_df`, `fpuv2_sf`, `fpuv3_df`, `fpuv3_hf`, `fpuv3_hi`, `fpuv3_sf`, `frecipe`, `frintts`, `fxsr`, `gfni`, `guarded-storage`, `hard-float`, `hard-float-abi`, `hard-tp`, `hbc`, `high-registers`, `high-word`, `hvx`, `hvx-length128b`, `hwdiv`, `i8mm`, `isa-68000`, `isa-68010`, `isa-68020`, `isa-68030`, `isa-68040`, `isa-68060`, `isa-68881`, `isa-68882`, `jsconv`, `kl`, `lahfsahf`, `lam-bh`, `lamcas`, `lasx`, `lbt`, `ld-seq-sa`, `leoncasa`, `lor`, `lse`, `lse128`, `lse2`, `lsx`, `lut`, `lvz`, `lzcnt`, `m`, `mclass`, `message-security-assist-extension12`, `message-security-assist-extension3`, `message-security-assist-extension4`, `message-security-assist-extension5`, `message-security-assist-extension8`, `message-security-assist-extension9`, `miscellaneous-extensions-2`, `miscellaneous-extensions-3`, `miscellaneous-extensions-4`, `mops`, `movbe`, `movrs`, `mp`, `mp1e2`, `msa`, `msync`, `mte`, `multivalue`, `mutable-globals`, `neon`, `nnp-assist`, `nontrapping-fptoint`, `nvic`, `paca`, `pacg`, `pan`, `partword-atomics`, `pauth-lr`, `pclmulqdq`, `pmuv3`, `popcnt`, `power10-vector`, `power8-altivec`, `power8-crypto`, `power8-vector`, `power9-altivec`, `power9-vector`, `prfchw`, `ptx32`, `ptx40`, `ptx41`, `ptx42`, `ptx43`, `ptx50`, `ptx60`, `ptx61`, `ptx62`, `ptx63`, `ptx64`, `ptx65`, `ptx70`, `ptx71`, `ptx72`, `ptx73`, `ptx74`, `ptx75`, `ptx76`, `ptx77`, `ptx78`, `ptx80`, `ptx81`, `ptx82`, `ptx83`, `ptx84`, `ptx85`, `ptx86`, `ptx87`, `quadword-atomics`, `rand`, `ras`, `rclass`, `rcpc`, `rcpc2`, `rcpc3`, `rdm`, `rdrand`, `rdseed`, `reference-types`, `relax`, `relaxed-simd`, `rtm`, `rva23s64`, `rva23u64`, `sb`, `scq`, `sha`, `sha2`, `sha3`, `sha512`, `sign-ext`, `simd128`, `sm3`, `sm4`, `sm_100`, `sm_100a`, `sm_101`, `sm_101a`, `sm_120`, `sm_120a`, `sm_20`, `sm_21`, `sm_30`, `sm_32`, `sm_35`, `sm_37`, `sm_50`, `sm_52`, `sm_53`, `sm_60`, `sm_61`, `sm_62`, `sm_70`, `sm_72`, `sm_75`, `sm_80`, `sm_86`, `sm_87`, `sm_89`, `sm_90`, `sm_90a`, `sme`, `sme-b16b16`, `sme-f16f16`, `sme-f64f64`, `sme-f8f16`, `sme-f8f32`, `sme-fa64`, `sme-i16i64`, `sme-lutv2`, `sme2`, `sme2p1`, `soft-float`, `spe`, `ssbs`, `ssccptr`, `sscofpmf`, `sscounterenw`, `sse`, `sse2`, `sse3`, `sse4.1`, `sse4.2`, `sse4a`, `ssnpm`, `ssse3`, `sstc`, `sstvala`, `sstvecd`, `ssu64xl`, `ssve-fp8dot2`, `ssve-fp8dot4`, `ssve-fp8fma`, `supm`, `svade`, `svbare`, `sve`, `sve-b16b16`, `sve2`, `sve2-aes`, `sve2-bitperm`, `sve2-sha3`, `sve2-sm4`, `sve2p1`, `svinval`, `svnapot`, `svpbmt`, `tail-call`, `tbm`, `thumb-mode`, `thumb2`, `tme`, `transactional-execution`, `trust`, `trustzone`, `ual`, `unaligned-scalar-mem`, `unaligned-vector-mem`, `v`, `v5te`, `v6`, `v6k`, `v6t2`, `v7`, `v8`, `v8.1a`, `v8.2a`, `v8.3a`, `v8.4a`, `v8.5a`, `v8.6a`, `v8.7a`, `v8.8a`, `v8.9a`, `v8plus`, `v9`, `v9.1a`, `v9.2a`, `v9.3a`, `v9.4a`, `v9.5a`, `v9a`, `vaes`, `vdsp2e60f`, `vdspv1`, `vdspv2`, `vector`, `vector-enhancements-1`, `vector-enhancements-2`, `vector-enhancements-3`, `vector-packed-decimal`, `vector-packed-decimal-enhancement`, `vector-packed-decimal-enhancement-2`, `vector-packed-decimal-enhancement-3`, `vfp2`, `vfp3`, `vfp4`, `vh`, `virt`, `virtualization`, `vpclmulqdq`, `vsx`, `wfxt`, `wide-arithmetic`, `widekl`, `x87`, `xop`, `xsave`, `xsavec`, `xsaveopt`, `xsaves`, `za128rs`, `za64rs`, `zaamo`, `zabha`, `zacas`, `zalrsc`, `zama16b`, `zawrs`, `zba`, `zbb`, `zbc`, `zbkb`, `zbkc`, `zbkx`, `zbs`, `zca`, `zcb`, `zcmop`, `zdinx`, `zfa`, `zfbfmin`, `zfh`, `zfhmin`, `zfinx`, `zhinx`, `zhinxmin`, `zic64b`, `zicbom`, `zicbop`, `zicboz`, `ziccamoa`, `ziccif`, `zicclsm`, `ziccrse`, `zicntr`, `zicond`, `zicsr`, `zifencei`, `zihintntl`, `zihintpause`, `zihpm`, `zimop`, `zk`, `zkn`, `zknd`, `zkne`, `zknh`, `zkr`, `zks`, `zksed`, `zksh`, `zkt`, `ztso`, `zvbb`, `zvbc`, `zve32f`, `zve32x`, `zve64d`, `zve64f`, `zve64x`, `zvfbfmin`, `zvfbfwma`, `zvfh`, `zvfhmin`, `zvkb`, `zvkg`, `zvkn`, `zvknc`, `zvkned`, `zvkng`, `zvknha`, `zvknhb`, `zvks`, `zvksc`, `zvksed`, `zvksg`, `zvksh`, `zvkt`, `zvl1024b`, `zvl128b`, `zvl16384b`, `zvl2048b`, `zvl256b`, `zvl32768b`, `zvl32b`, `zvl4096b`, `zvl512b`, `zvl64b`, `zvl65536b`, and `zvl8192b`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

warning: 1 warning emitted
------------------------------------------


---- [ui] tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-abi-riscv-interrupt/feature-gate-abi-riscv-interrupt.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
2   --> $DIR/feature-gate-abi-riscv-interrupt.rs:13:8
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args feature-gates/feature-gate-abi-riscv-interrupt.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-abi-riscv-interrupt" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32imc-unknown-none-elf" "--crate-type=rlib" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-abi-riscv-interrupt/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:13:8
   |
LL | extern "riscv-interrupt-m" fn f() {}
   |        ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "riscv-interrupt-s" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:15:8
   |
LL | extern "riscv-interrupt-s" fn f_s() {}
   |        ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:19:12
   |
LL |     extern "riscv-interrupt-m" fn m();
   |            ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:25:12
   |
LL |     extern "riscv-interrupt-m" fn m() {}
   |            ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:30:12
   |
LL |     extern "riscv-interrupt-m" fn im() {}
   |            ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
##[error]  --> /checkout/tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs:34:18
   |
LL | type TA = extern "riscv-interrupt-m" fn();
   |                  ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #111889 <https://github.com/rust-lang/rust/issues/111889> for more information
   = help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0658`.
------------------------------------------


---- [ui] tests/ui/sanitizer/cfg-kasan.rs#riscv64imac stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64imac/cfg-kasan.riscv64imac.stderr`
normalized stderr:
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)



The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args sanitizer/cfg-kasan.rs`

error in revision `riscv64imac`: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/sanitizer/cfg-kasan.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64imac" "--check-cfg" "cfg(test,FALSE,aarch64,riscv64imac,riscv64gc,x86_64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64imac" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Zsanitizer=kernel-address" "--target" "riscv64imac-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64imac/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
------------------------------------------


---- [ui] tests/ui/sanitizer/cfg-kasan.rs#riscv64gc stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64gc/cfg-kasan.riscv64gc.stderr`
normalized stderr:
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)



The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args sanitizer/cfg-kasan.rs`

error in revision `riscv64gc`: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/sanitizer/cfg-kasan.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv64gc" "--check-cfg" "cfg(test,FALSE,aarch64,riscv64imac,riscv64gc,x86_64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64gc" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Zsanitizer=kernel-address" "--target" "riscv64gc-unknown-none-elf" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--extern" "minicore=/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/sanitizer/cfg-kasan.riscv64gc/libminicore.rlib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
------------------------------------------


---- [ui] tests/ui/target-feature/abi-incompatible-target-feature-attribute.rs#riscv stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-incompatible-target-feature-attribute.riscv/abi-incompatible-target-feature-attribute.riscv.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
2   --> $DIR/abi-incompatible-target-feature-attribute.rs:21:90
3    |

4 LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "d"))]
5    |                                                                                          ^^^^^^^^^^^^
6 
- error: aborting due to 1 previous error
+ error: aborting due to 1 previous error; 1 warning emitted
8 
---
To only update this specific test, also pass `--test-args target-feature/abi-incompatible-target-feature-attribute.rs`

error in revision `riscv`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/abi-incompatible-target-feature-attribute.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv" "--check-cfg" "cfg(test,FALSE,x86,riscv)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-incompatible-target-feature-attribute.riscv" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=lib" "--target=riscv32e-unknown-none-elf"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
##[error]  --> /checkout/tests/ui/target-feature/abi-incompatible-target-feature-attribute.rs:21:90
   |
LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "d"))]
   |                                                                                          ^^^^^^^^^^^^

error: aborting due to 1 previous error; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/target-feature/abi-incompatible-target-feature-flag-enable.rs#riscv stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-incompatible-target-feature-flag-enable.riscv/abi-incompatible-target-feature-flag-enable.riscv.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
2    |
3    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args target-feature/abi-incompatible-target-feature-flag-enable.rs`

error in revision `riscv`: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/abi-incompatible-target-feature-flag-enable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv" "--check-cfg" "cfg(test,FALSE,x86,riscv)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-incompatible-target-feature-flag-enable.riscv" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=lib" "--target=riscv32e-unknown-none-elf" "-Ctarget-feature=+d"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: unstable feature specified for `-Ctarget-feature`: `d`
---
---- [ui] tests/ui/target-feature/abi-required-target-feature-flag-disable.rs#riscv stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-required-target-feature-flag-disable.riscv/abi-required-target-feature-flag-disable.riscv.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 warning: target feature `d` must be enabled to ensure that the ABI of the current target can be implemented correctly
2    |
3    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

7    |
8    = note: this feature is not stably supported; its behavior can change in the future
9 
+ '-rva23s64' is not a recognized feature for this target (ignoring feature)
+ '-rva23u64' is not a recognized feature for this target (ignoring feature)
+ '-rva23s64' is not a recognized feature for this target (ignoring feature)
+ '-rva23u64' is not a recognized feature for this target (ignoring feature)
10 warning: 2 warnings emitted
11 
12 


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args target-feature/abi-required-target-feature-flag-disable.rs`

error in revision `riscv`: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/abi-required-target-feature-flag-disable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--cfg" "riscv" "--check-cfg" "cfg(test,FALSE,x86,x86_implied,aarch64,riscv,loongarch)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/abi-required-target-feature-flag-disable.riscv" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--crate-type=lib" "--target=riscv64gc-unknown-none-elf" "-Ctarget-feature=-d"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be enabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: unstable feature specified for `-Ctarget-feature`: `d`
   |
   = note: this feature is not stably supported; its behavior can change in the future

'-rva23s64' is not a recognized feature for this target (ignoring feature)
'-rva23u64' is not a recognized feature for this target (ignoring feature)
'-rva23s64' is not a recognized feature for this target (ignoring feature)
'-rva23u64' is not a recognized feature for this target (ignoring feature)
Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)
warning: 2 warnings emitted
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d/forbidden-hardfloat-target-feature-attribute-e-d.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
2   --> $DIR/forbidden-hardfloat-target-feature-attribute-e-d.rs:16:18
3    |

4 LL | #[target_feature(enable = "d")]
5    |                  ^^^^^^^^^^^^
6 
- error: aborting due to 1 previous error
+ error: aborting due to 1 previous error; 1 warning emitted
8 
---
To only update this specific test, also pass `--test-args target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32e-unknown-none-elf" "--crate-type=lib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
##[error]  --> /checkout/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs:16:18
   |
LL | #[target_feature(enable = "d")]
   |                  ^^^^^^^^^^^^

error: aborting due to 1 previous error; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx/forbidden-hardfloat-target-feature-attribute-f-zfinx.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
1 error: target feature `zfinx` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
2   --> $DIR/forbidden-hardfloat-target-feature-attribute-f-zfinx.rs:16:18
3    |


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv64gc-unknown-linux-gnu" "--crate-type=lib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
error: target feature `zfinx` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
##[error]  --> /checkout/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-f-zfinx.rs:16:18
   |
LL | #[target_feature(enable = "zdinx")]
   |                  ^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-target-feature-attribute.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-attribute/forbidden-target-feature-attribute.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 error: target feature `forced-atomics` cannot be enabled with `#[target_feature]`: unsound because it changes the ABI of atomic operations
2   --> $DIR/forbidden-target-feature-attribute.rs:16:18
3    |

4 LL | #[target_feature(enable = "forced-atomics")]
5    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
6 
- error: aborting due to 1 previous error
+ error: aborting due to 1 previous error; 1 warning emitted
8 
---
To only update this specific test, also pass `--test-args target-feature/forbidden-target-feature-attribute.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-target-feature-attribute.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-attribute" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32e-unknown-none-elf" "--crate-type=lib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

error: target feature `forced-atomics` cannot be enabled with `#[target_feature]`: unsound because it changes the ABI of atomic operations
##[error]  --> /checkout/tests/ui/target-feature/forbidden-target-feature-attribute.rs:16:18
   |
LL | #[target_feature(enable = "forced-atomics")]
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error; 1 warning emitted
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-target-feature-cfg.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-cfg/forbidden-target-feature-cfg.stderr`
normalized stderr:
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: 1 warning emitted
---
To only update this specific test, also pass `--test-args target-feature/forbidden-target-feature-cfg.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-target-feature-cfg.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-cfg" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32e-unknown-none-elf" "--crate-type=lib"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: 1 warning emitted
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-target-feature-flag-disable.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-flag-disable/forbidden-target-feature-flag-disable.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 warning: target feature `forced-atomics` cannot be disabled with `-Ctarget-feature`: unsound because it changes the ABI of atomic operations
2    |
3    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

4    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
5 
---
To only update this specific test, also pass `--test-args target-feature/forbidden-target-feature-flag-disable.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-target-feature-flag-disable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-flag-disable" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32e-unknown-none-elf" "--crate-type=lib" "-Ctarget-feature=-forced-atomics"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: target feature `forced-atomics` cannot be disabled with `-Ctarget-feature`: unsound because it changes the ABI of atomic operations
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: 2 warnings emitted
------------------------------------------


---- [ui] tests/ui/target-feature/forbidden-target-feature-flag.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-flag/forbidden-target-feature-flag.stderr`
diff of stderr:

+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23s64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+rva23u64' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+sha' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+ssnpm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ '+supm' is not a recognized feature for this target (ignoring feature)
+ warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
+    |
+    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+ 
1 warning: target feature `forced-atomics` cannot be enabled with `-Ctarget-feature`: unsound because it changes the ABI of atomic operations
2    |
3    = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

4    = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
5 
---
To only update this specific test, also pass `--test-args target-feature/forbidden-target-feature-flag.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/target-feature/forbidden-target-feature-flag.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/target-feature/forbidden-target-feature-flag" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--target=riscv32e-unknown-none-elf" "--crate-type=lib" "-Ctarget-feature=+forced-atomics"
stdout: none
--- stderr -------------------------------
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23s64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+rva23u64' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+sha' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+ssnpm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
'+supm' is not a recognized feature for this target (ignoring feature)
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: target feature `forced-atomics` cannot be enabled with `-Ctarget-feature`: unsound because it changes the ABI of atomic operations
   |
   = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: 2 warnings emitted

@bors
Copy link
Collaborator

bors commented Aug 8, 2025

☔ The latest upstream changes (presumably #145077) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants