Skip to content

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

Open
romancardenas wants to merge 2 commits intorust-lang:mainfrom
romancardenas:riscv-target-feature-cfg-stable-toggle-unstable
Open

riscv: promote d, e, and f target_features to CfgStableToggleUnstable#156188
romancardenas wants to merge 2 commits intorust-lang:mainfrom
romancardenas:riscv-target-feature-cfg-stable-toggle-unstable

Conversation

@romancardenas
Copy link
Copy Markdown
Contributor

@romancardenas romancardenas commented May 5, 2026

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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 5, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 5, 2026

RalfJung is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

Copy link
Copy Markdown
Member

@RalfJung RalfJung May 5, 2026

Choose a reason for hiding this comment

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

Please add tests which show that we properly error/warn when using #[target_feature(enable = "f")] or -Ctarget-feature=f.

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants