Skip to content

Document RISC-V d, e, and f extensions - #2274

Merged
ehuss merged 1 commit into
rust-lang:masterfrom
ehuss:risc-def
Jun 8, 2026
Merged

Document RISC-V d, e, and f extensions#2274
ehuss merged 1 commit into
rust-lang:masterfrom
ehuss:risc-def

Conversation

@ehuss

@ehuss ehuss commented May 24, 2026

Copy link
Copy Markdown
Contributor

These are being stabilized in rust-lang/rust#156188 as cfg-only features. It is a little odd to list them here in the target_feature attribute section since they can't be used with the attribute, but I think it makes sense to keep things together. Perhaps in the future we may consider breaking these lists out into a separate section and rearrange things.

These are being stabilized in
rust-lang/rust#156188 as cfg-only features. It
is a little odd to list them here in the target_feature attribute
section since they can't be used with the attribute, but I think it
makes sense to keep things together. Perhaps in the future we may
consider breaking these lists out into a separate section and rearrange
things.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label May 24, 2026
@ehuss

ehuss commented May 24, 2026

Copy link
Copy Markdown
Contributor Author

@romancardenas can you review and confirm everything looks right here? In particular, I was uncertain about the E feature, since it has a slightly different way of being documented in the manual.

Also, I noticed that we are linking to the 20250508 tag, which is a bit old now. Would it make sense to change the links to a newer version? I've noticed these features have had some updates. I think the latest ratified version is v20260120.

@ehuss ehuss added the S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository label May 24, 2026

@romancardenas romancardenas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM! Regarding updating the links to the RISC-V specification, I think It should be OK. At least these extensions have not experienced too many changes.

View changes since this review

@traviscross traviscross added the I-lang-docs-nominated Nominated for discussion during a lang-docs team meeting. label May 26, 2026
@traviscross traviscross removed I-lang-docs-nominated Nominated for discussion during a lang-docs team meeting. S-waiting-on-review Status: The marked PR is awaiting review from a maintainer labels May 26, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 7, 2026
…-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang#150257

r? @RalfJung
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 7, 2026
…-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang#150257

r? @RalfJung
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 7, 2026
…-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang#150257

r? @RalfJung
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 7, 2026
…-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang#150257

r? @RalfJung
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 7, 2026
…-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang#150257

r? @RalfJung
rust-timer added a commit to rust-lang/rust that referenced this pull request Jun 8, 2026
Rollup merge of #156188 - romancardenas:riscv-target-feature-cfg-stable-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of #155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to #150257

r? @RalfJung
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Jun 8, 2026
…le-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang/rust#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang/rust#150257

r? @RalfJung
asukaminato0721 pushed a commit to asukaminato0721/rust-analyzer that referenced this pull request Jun 8, 2026
…le-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang/rust#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang/rust#150257

r? @RalfJung
@ehuss
ehuss added this pull request to the merge queue Jun 8, 2026
Merged via the queue into rust-lang:master with commit 6f2d1ea Jun 8, 2026
6 checks passed
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 15, 2026
Update books

## rust-lang/reference

2 commits in 01b0ee707f4571e803c8b2c471d8335a448f5d60..2c27905c15a51983b54d84f050d3bda096194d27
2026-06-15 14:08:07 UTC to 2026-06-08 16:22:03 UTC

- undefined: fix typo (rust-lang/reference#2285)
- Document RISC-V d, e, and f extensions (rust-lang/reference#2274)
@rustbot rustbot added this to the 1.98.0 milestone Jun 16, 2026
ghaaj pushed a commit to ghaaj/polygrammar that referenced this pull request Aug 7, 2026
…le-toggle-unstable, r=RalfJung

riscv: promote d, e, and f target_features to CfgStableToggleUnstable

Reference PR:

- rust-lang/reference#2274

This PR is a continuation of rust-lang/rust#155962

It uses the new `CfgStableToggleUnstable` stability level for the `"d"`, `"e"`, and `"f"` `target_features` of RISC-V. This way, it will be possible to add conditional code blocks depending on whether the target architecture has FPU, for instance.

The PR is related to rust-lang/rust#150257

r? @RalfJung
@traviscross traviscross removed the S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants