about summary refs log tree commit diff
path: root/compiler/rustc_feature/src/unstable.rs
diff options
context:
space:
mode:
authorJed Brown <jed@jedbrown.org>2025-02-26 20:06:25 -0700
committerJed Brown <jed@jedbrown.org>2025-06-21 19:32:47 -0600
commit6dbac3f09e67c853f343df9d75a7eb213f16c959 (patch)
treedd0f019aae3256ad9f359feccc2d7b1304da731e /compiler/rustc_feature/src/unstable.rs
parentd4e1159b8c97478778b09a4cc1c7adce5653b8bf (diff)
downloadrust-6dbac3f09e67c853f343df9d75a7eb213f16c959.tar.gz
rust-6dbac3f09e67c853f343df9d75a7eb213f16c959.zip
add nvptx_target_feature
Add target features for sm_* and ptx*, both of which form a partial
order, but cannot be combined to a single partial order. These mirror
the LLVM target features, but we do not provide LLVM target
processors (which imply both an sm_* and ptx* feature).

Add some documentation for the nvptx target.
Diffstat (limited to 'compiler/rustc_feature/src/unstable.rs')
-rw-r--r--compiler/rustc_feature/src/unstable.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index 91715851226..bc48b45bce1 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -329,6 +329,7 @@ declare_features! (
     (unstable, m68k_target_feature, "1.85.0", Some(134328)),
     (unstable, mips_target_feature, "1.27.0", Some(44839)),
     (unstable, movrs_target_feature, "1.88.0", Some(137976)),
+    (unstable, nvptx_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
     (unstable, powerpc_target_feature, "1.27.0", Some(44839)),
     (unstable, prfchw_target_feature, "1.78.0", Some(44839)),
     (unstable, riscv_target_feature, "1.45.0", Some(44839)),