]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/collect.rs
Add RISC-V target features
[rust.git] / src / librustc_typeck / collect.rs
index 854bd03b2648679237144d5980f852b8bddf43c3..4bbb36c8742aec65367be05ac2bd2486fe33846b 100644 (file)
@@ -2278,6 +2278,7 @@ fn from_target_feature(
                 Some(sym::hexagon_target_feature) => rust_features.hexagon_target_feature,
                 Some(sym::powerpc_target_feature) => rust_features.powerpc_target_feature,
                 Some(sym::mips_target_feature) => rust_features.mips_target_feature,
+                Some(sym::riscv_target_feature) => rust_features.riscv_target_feature,
                 Some(sym::avx512_target_feature) => rust_features.avx512_target_feature,
                 Some(sym::mmx_target_feature) => rust_features.mmx_target_feature,
                 Some(sym::sse4a_target_feature) => rust_features.sse4a_target_feature,