about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-02 19:00:07 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-08-07 14:41:33 +0200
commit3ef863bfdfb9173a0ad55d24e20202948dda6bbe (patch)
tree88363d22f4c514b1b5ca7f7e086258506096d306 /src/libsyntax
parent9e472c2acea2b7714985390abb6b7fe420a4f346 (diff)
downloadrust-3ef863bfdfb9173a0ad55d24e20202948dda6bbe.tar.gz
rust-3ef863bfdfb9173a0ad55d24e20202948dda6bbe.zip
Place unions, pointer casts and pointer derefs behind extra feature gates
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index a3822a4a1f9..5ae9ae7f404 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -216,6 +216,15 @@ declare_features! (
     // Allows let bindings and destructuring in `const fn` functions and constants.
     (active, const_let, "1.22.1", Some(48821), None),
 
+    // Allows accessing fields of unions inside const fn
+    (active, const_fn_union, "1.27.0", Some(51909), None),
+
+    // Allows casting raw pointers to `usize` during const eval
+    (active, const_raw_ptr_to_usize_cast, "1.27.0", Some(51910), None),
+
+    // Allows dereferencing raw pointers during const eval
+    (active, const_raw_ptr_deref, "1.27.0", Some(51911), None),
+
     // Allows using #[prelude_import] on glob `use` items.
     //
     // rustc internal