Skip to content

Commit 6bc700f

Browse files
a4lgAmanieu
authored andcommitted
Fix: stabilized version of RISC-V feature macro
RISC-V runtime feature detection macro is stabilized on Rust 1.78.0, not Rust 1.76.0.
1 parent 9f00c9b commit 6bc700f

File tree

1 file changed

+21
-21
lines changed
  • crates/std_detect/src/detect/arch

1 file changed

+21
-21
lines changed

crates/std_detect/src/detect/arch/riscv.rs

+21-21
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ features! {
8888
/// * Hypervisor: `"h"`
8989
///
9090
/// [ISA manual]: https://github.com/riscv/riscv-isa-manual/
91-
#[stable(feature = "riscv_ratified", since = "1.76.0")]
91+
#[stable(feature = "riscv_ratified", since = "1.78.0")]
9292
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv32i: "rv32i";
9393
without cfg check: true;
9494
/// RV32I Base Integer Instruction Set
@@ -101,9 +101,9 @@ features! {
101101
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv64i: "rv64i";
102102
without cfg check: true;
103103
/// RV64I Base Integer Instruction Set
104-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] m: "m";
104+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] m: "m";
105105
/// "M" Standard Extension for Integer Multiplication and Division
106-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] a: "a";
106+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] a: "a";
107107
/// "A" Standard Extension for Atomic Instructions
108108
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicsr: "zicsr";
109109
without cfg check: true;
@@ -121,7 +121,7 @@ features! {
121121
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] q: "q";
122122
without cfg check: true;
123123
/// "Q" Standard Extension for Quad-Precision Floating-Point
124-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] c: "c";
124+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] c: "c";
125125
/// "C" Standard Extension for Compressed Instructions
126126
127127
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfinx: "zfinx";
@@ -174,39 +174,39 @@ features! {
174174
without cfg check: true;
175175
/// Hypervisor Extension
176176
177-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zba: "zba";
177+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zba: "zba";
178178
/// "Zba" Standard Extension for Address Generation Instructions
179-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbb: "zbb";
179+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbb: "zbb";
180180
/// "Zbb" Standard Extension for Basic Bit-Manipulation
181-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbc: "zbc";
181+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbc: "zbc";
182182
/// "Zbc" Standard Extension for Carry-less Multiplication
183-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbs: "zbs";
183+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbs: "zbs";
184184
/// "Zbs" Standard Extension for Single-Bit instructions
185185
186-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbkb: "zbkb";
186+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbkb: "zbkb";
187187
/// "Zbkb" Standard Extension for Bitmanip instructions for Cryptography
188-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbkc: "zbkc";
188+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbkc: "zbkc";
189189
/// "Zbkc" Standard Extension for Carry-less multiply instructions
190-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zbkx: "zbkx";
190+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zbkx: "zbkx";
191191
/// "Zbkx" Standard Extension for Crossbar permutation instructions
192-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zknd: "zknd";
192+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zknd: "zknd";
193193
/// "Zknd" Standard Extension for NIST Suite: AES Decryption
194-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zkne: "zkne";
194+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zkne: "zkne";
195195
/// "Zkne" Standard Extension for NIST Suite: AES Encryption
196-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zknh: "zknh";
196+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zknh: "zknh";
197197
/// "Zknh" Standard Extension for NIST Suite: Hash Function Instructions
198-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zksed: "zksed";
198+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zksed: "zksed";
199199
/// "Zksed" Standard Extension for ShangMi Suite: SM4 Block Cipher Instructions
200-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zksh: "zksh";
200+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zksh: "zksh";
201201
/// "Zksh" Standard Extension for ShangMi Suite: SM3 Hash Function Instructions
202-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zkr: "zkr";
202+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zkr: "zkr";
203203
/// "Zkr" Standard Extension for Entropy Source Extension
204-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zkn: "zkn";
204+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zkn: "zkn";
205205
/// "Zkn" Standard Extension for NIST Algorithm Suite
206-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zks: "zks";
206+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zks: "zks";
207207
/// "Zks" Standard Extension for ShangMi Algorithm Suite
208-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zk: "zk";
208+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zk: "zk";
209209
/// "Zk" Standard Extension for Standard scalar cryptography extension
210-
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zkt: "zkt";
210+
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zkt: "zkt";
211211
/// "Zkt" Standard Extension for Data Independent Execution Latency
212212
}

0 commit comments

Comments
 (0)