Stabilize RFC3324 dyn upcasting coercion
Aka trait_upcasting feature. And also adjust the `deref_into_dyn_supertrait` lint.
This commit is contained in:
parent
855c6836b7
commit
4c2d6de70e
69 changed files with 107 additions and 357 deletions
|
@ -338,6 +338,9 @@ declare_features! (
|
|||
/// Allows `#[track_caller]` to be used which provides
|
||||
/// accurate caller location reporting during panic (RFC 2091).
|
||||
(accepted, track_caller, "1.46.0", Some(47809), None),
|
||||
/// Allows dyn upcasting trait objects via supertraits.
|
||||
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
|
||||
(accepted, trait_upcasting, "CURRENT_RUSTC_VERSION", Some(65991), None),
|
||||
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
|
||||
(accepted, transparent_enums, "1.42.0", Some(60405), None),
|
||||
/// Allows indexing tuples.
|
||||
|
|
|
@ -562,9 +562,6 @@ declare_features! (
|
|||
(unstable, thread_local, "1.0.0", Some(29594), None),
|
||||
/// Allows defining `trait X = A + B;` alias items.
|
||||
(unstable, trait_alias, "1.24.0", Some(41517), None),
|
||||
/// Allows dyn upcasting trait objects via supertraits.
|
||||
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
|
||||
(unstable, trait_upcasting, "1.56.0", Some(65991), None),
|
||||
/// Allows for transmuting between arrays with sizes that contain generic consts.
|
||||
(unstable, transmute_generic_consts, "1.70.0", Some(109929), None),
|
||||
/// Allows #[repr(transparent)] on unions (RFC 2645).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue