From: Oliver Scherer Date: Sun, 30 Dec 2018 17:57:31 +0000 (+0100) Subject: Clarify const_let comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=a49acea80de0a78b421319ad340d4bc5e84a4dfe;p=rust.git Clarify const_let comment --- 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 @@ pub fn walk_feature_fields(&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), );