diff options
| author | bors <bors@rust-lang.org> | 2017-05-27 23:02:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-27 23:02:44 +0000 |
| commit | 5d2512ec5b03a1155054df881e40e35fc87d6351 (patch) | |
| tree | 7aed5ec881348ccaf35d17655003aee7e33ebf5c /src/libsyntax | |
| parent | 28fd1e519a3807c632d58d01e73b4948000639ba (diff) | |
| parent | 87950b79de4bd12ad02f32dbebc60ab1bef17f82 (diff) | |
| download | rust-5d2512ec5b03a1155054df881e40e35fc87d6351.tar.gz rust-5d2512ec5b03a1155054df881e40e35fc87d6351.zip | |
Auto merge of #42162 - est31:closure-to-fn-coercion, r=aturon
Stabilize non capturing closure to fn coercion Stabilisation PR for non capturing closure to fn coercion. closes #39817
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index c119fad1b73..6bdd02d583c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -321,9 +321,6 @@ declare_features! ( // `extern "msp430-interrupt" fn()` (active, abi_msp430_interrupt, "1.16.0", Some(38487)), - // Coerces non capturing closures to function pointers - (active, closure_to_fn_coercion, "1.17.0", Some(39817)), - // Used to identify crates that contain sanitizer runtimes // rustc internal (active, sanitizer_runtime, "1.17.0", None), @@ -427,6 +424,8 @@ declare_features! ( (accepted, loop_break_value, "1.19.0", Some(37339)), // Permits numeric fields in struct expressions and patterns. (accepted, relaxed_adts, "1.19.0", Some(35626)), + // Coerces non capturing closures to function pointers + (accepted, closure_to_fn_coercion, "1.19.0", Some(39817)), ); // If you change this, please modify src/doc/unstable-book as well. You must @@ -1026,9 +1025,6 @@ pub const EXPLAIN_VIS_MATCHER: &'static str = pub const EXPLAIN_PLACEMENT_IN: &'static str = "placement-in expression syntax is experimental and subject to change."; -pub const CLOSURE_TO_FN_COERCION: &'static str = - "non-capturing closure to fn coercion is experimental"; - struct PostExpansionVisitor<'a> { context: &'a Context<'a>, } |
