diff options
| author | Amjad Alsharafi <amjadsharafi10@gmail.com> | 2020-08-31 02:59:56 +0800 |
|---|---|---|
| committer | Amjad Alsharafi <amjadsharafi10@gmail.com> | 2020-09-15 14:23:05 +0800 |
| commit | da700cba08a2b194d19e63d3c51ebadce96fe46b (patch) | |
| tree | d82a84c2a57ae3fd83b3dad017c5bad572cd3e90 /compiler/rustc_feature/src | |
| parent | 715e9340a1006e37aed381e320ddf30311c2c2a6 (diff) | |
| download | rust-da700cba08a2b194d19e63d3c51ebadce96fe46b.tar.gz rust-da700cba08a2b194d19e63d3c51ebadce96fe46b.zip | |
Stabilize move_ref_pattern
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/accepted.rs | 3 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_feature/src/accepted.rs b/compiler/rustc_feature/src/accepted.rs index 0477f6f149b..ce002ac3cdf 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -270,6 +270,9 @@ declare_features! ( (accepted, track_caller, "1.46.0", Some(47809), None), /// Allows `#[doc(alias = "...")]`. (accepted, doc_alias, "1.48.0", Some(50146), None), + /// Allows patterns with concurrent by-move and by-ref bindings. + /// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref. + (accepted, move_ref_pattern, "1.48.0", Some(68354), None), // ------------------------------------------------------------------------- // feature-group-end: accepted features diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index d4664292a0c..ed5560bb6d7 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -527,10 +527,6 @@ declare_features! ( /// For example, you can write `x @ Some(y)`. (active, bindings_after_at, "1.41.0", Some(65490), None), - /// Allows patterns with concurrent by-move and by-ref bindings. - /// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref. - (active, move_ref_pattern, "1.42.0", Some(68354), None), - /// Allows `impl const Trait for T` syntax. (active, const_trait_impl, "1.42.0", Some(67792), None), |
