feature(const_param_types)
-> feature(adt_const_params)
This commit is contained in:
parent
4747cbb3bb
commit
87e781799a
77 changed files with 108 additions and 108 deletions
|
@ -71,7 +71,7 @@ macro_rules! declare_features {
|
|||
}
|
||||
|
||||
pub fn unordered_const_ty_params(&self) -> bool {
|
||||
self.const_generics_defaults || self.generic_const_exprs || self.const_param_types
|
||||
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
|
||||
|
@ -674,7 +674,7 @@ declare_features! (
|
|||
(incomplete, generic_const_exprs, "1.56.0", Some(76560), None),
|
||||
|
||||
/// Allows additional const parameter types, such as `&'static str` or user defined types
|
||||
(incomplete, const_param_types, "1.56.0", Some(44580), None),
|
||||
(incomplete, adt_const_params, "1.56.0", Some(44580), None),
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: actual feature gates
|
||||
|
|
|
@ -104,7 +104,7 @@ declare_features! (
|
|||
(removed, quote, "1.33.0", Some(29601), None, None),
|
||||
/// Allows const generic types (e.g. `struct Foo<const N: usize>(...);`).
|
||||
(removed, const_generics, "1.34.0", Some(44580), None,
|
||||
Some("removed in favor of `#![feature(const_param_types]` and `#![feature(generic_const_exprs)]`")),
|
||||
Some("removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`")),
|
||||
/// Allows `[x; N]` where `x` is a constant (RFC 2203).
|
||||
(removed, const_in_array_repeat_expressions, "1.37.0", Some(49147), None,
|
||||
Some("removed due to causing promotable bugs")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue