diff options
| author | Eric Holk <ericholk@microsoft.com> | 2022-04-07 18:06:53 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 16:55:55 -0700 |
| commit | eff35e59c698df379806add4c9f2c1d8d3fe55ca (patch) | |
| tree | 66d66c6c1604d75452a40ddb9b1f2e0d87ef86aa /compiler/rustc_feature/src | |
| parent | fa6ee9375242ae784dab1837dfc0b92f43e787ce (diff) | |
| download | rust-eff35e59c698df379806add4c9f2c1d8d3fe55ca.tar.gz rust-eff35e59c698df379806add4c9f2c1d8d3fe55ca.zip | |
Introduce dyn_star feature flag
The primary purpose of this commit is to introduce the dyn_star flag so we can begin experimenting with implementation. In order to have something to do in the feature gate test, we also add parser support for `dyn* Trait` objects. These are currently treated just like `dyn Trait` objects, but this will change in the future. Note that for now `dyn* Trait` is experimental syntax to enable implementing some of the machinery needed for async fn in dyn traits without fully supporting the feature.
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 5377ebde168..72f7064b6ca 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -380,6 +380,8 @@ declare_features! ( (active, doc_cfg_hide, "1.57.0", Some(43781), None), /// Allows `#[doc(masked)]`. (active, doc_masked, "1.21.0", Some(44027), None), + /// Allows `dyn* Trait` objects. + (active, dyn_star, "1.65.0", Some(91611), None), /// Allows `X..Y` patterns. (active, exclusive_range_pattern, "1.11.0", Some(37854), None), /// Allows exhaustive pattern matching on types that contain uninhabited types. |
