about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-12-30 18:57:31 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-01-09 10:20:44 +0100
commita49acea80de0a78b421319ad340d4bc5e84a4dfe (patch)
tree11e5908e2235adf0708a5b1bb67e5472bab7a2cf /src/libsyntax
parent4b4fc63eb7745639c76c1f8011239354a1823547 (diff)
downloadrust-a49acea80de0a78b421319ad340d4bc5e84a4dfe.tar.gz
rust-a49acea80de0a78b421319ad340d4bc5e84a4dfe.zip
Clarify const_let comment
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 15cf4334154..a7b391f2d1a 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -685,7 +685,9 @@ declare_features! (
     (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),
 );