diff options
| author | Ellen <supbscripter@gmail.com> | 2021-10-23 16:57:13 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-12-10 19:20:31 +0000 |
| commit | 69d2d735bc3f7bff7c42542691283d8a5f1a60f8 (patch) | |
| tree | c8d8893225463df6a7cec222c1bbc34e235d31a0 /compiler/rustc_feature | |
| parent | 3b263ceb5cb89b6d53b5a03b47ec447c3a7f7765 (diff) | |
remove feature gate and cleanup code
Diffstat (limited to 'compiler/rustc_feature')
| -rw-r--r-- | compiler/rustc_feature/src/accepted.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_feature/src/accepted.rs b/compiler/rustc_feature/src/accepted.rs index 6950fae898f..1b999258aed 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -306,6 +306,8 @@ declare_features! ( (accepted, while_let, "1.0.0", None, None), /// Allows `#![windows_subsystem]`. (accepted, windows_subsystem, "1.18.0", Some(37499), None), + /// Allows const generics to have default values (e.g. `struct Foo<const N: usize = 3>(...);`). + (accepted, const_generics_defaults, "1.58.0", Some(44580), None), // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way. // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 640c4bba6da..22f6559d15f 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -69,10 +69,6 @@ macro_rules! declare_features { } } - pub fn unordered_const_ty_params(&self) -> bool { - self.const_generics_defaults || self.generic_const_exprs || self.adt_const_params - } - /// Some features are known to be incomplete and using them is likely to have /// unanticipated results, such as compiler crashes. We warn the user about these /// to alert them. @@ -334,8 +330,6 @@ declare_features! ( (active, const_fn_trait_bound, "1.53.0", Some(57563), None), /// Allows `for _ in _` loops in const contexts. (active, const_for, "1.56.0", Some(87575), None), - /// Allows const generics to have default values (e.g. `struct Foo<const N: usize = 3>(...);`). - (active, const_generics_defaults, "1.51.0", Some(44580), None), /// Allows argument and return position `impl Trait` in a `const fn`. (active, const_impl_trait, "1.48.0", Some(77463), None), /// Allows using `&mut` in constant functions. |
