Skip to content

Commit a49acea

Browse files
committed
Clarify const_let comment
1 parent 4b4fc63 commit a49acea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,9 @@ declare_features! (
685685
(accepted, min_const_unsafe_fn, "1.33.0", Some(55607), None),
686686
// `#[cfg_attr(predicate, multiple, attributes, here)]`
687687
(accepted, cfg_attr_multi, "1.33.0", Some(54881), None),
688-
// Allows let bindings and destructuring in `const` functions and constants.
688+
// Allows let bindings, assignments and destructuring in `const` functions and constants.
689+
// As long as control flow is not implemented in const eval, `&&` and `||` may not be used
690+
// at the same time as let bindings.
689691
(accepted, const_let, "1.33.0", Some(48821), None),
690692
);
691693

0 commit comments

Comments
 (0)