]> git.lizzy.rs Git - rust.git/commitdiff
Clarify const_let comment
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sun, 30 Dec 2018 17:57:31 +0000 (18:57 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Wed, 9 Jan 2019 09:20:44 +0000 (10:20 +0100)
src/libsyntax/feature_gate.rs

index 15cf4334154da408c20317b4e42df9b8c53a5c9b..a7b391f2d1a4c3a5181bc13aff9f2f7f9a6c0d6f 100644 (file)
@@ -685,7 +685,9 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     (accepted, min_const_unsafe_fn, "1.33.0", Some(55607), None),
     // `#[cfg_attr(predicate, multiple, attributes, here)]`
     (accepted, cfg_attr_multi, "1.33.0", Some(54881), None),
-    // Allows let bindings and destructuring in `const` functions and constants.
+    // Allows let bindings, assignments and destructuring in `const` functions and constants.
+    // As long as control flow is not implemented in const eval, `&&` and `||` may not be used
+    // at the same time as let bindings.
     (accepted, const_let, "1.33.0", Some(48821), None),
 );