Skip to content

Commit f3d31f7

Browse files
committedFeb 24, 2025·
Remove dyn_compatible_for_dispatch
1 parent 617aad8 commit f3d31f7

File tree

58 files changed

+511
-886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+511
-886
lines changed
 

Diff for: ‎compiler/rustc_feature/src/removed.rs

+9
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ declare_features! (
100100
Some("renamed to `doc_notable_trait`")),
101101
/// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
102102
(removed, dropck_parametricity, "1.38.0", Some(28498), None),
103+
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn compatible[^1].
104+
/// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
105+
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
106+
///
107+
/// Renamed from `object_safe_for_dispatch`.
108+
///
109+
/// [^1]: Formerly known as "object safe".
110+
(removed, dyn_compatible_for_dispatch, "1.83.0", Some(43561),
111+
Some("removed, not used heavily and represented additional complexity in dyn compatibility")),
103112
/// Uses generic effect parameters for ~const bounds
104113
(removed, effects, "1.84.0", Some(102090),
105114
Some("removed, redundant with `#![feature(const_trait_impl)]`")),

Diff for: ‎compiler/rustc_feature/src/unstable.rs

-8
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,6 @@ declare_features! (
270270
(unstable, doc_notable_trait, "1.52.0", Some(45040)),
271271
/// Allows using the `may_dangle` attribute (RFC 1327).
272272
(unstable, dropck_eyepatch, "1.10.0", Some(34761)),
273-
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn compatible[^1].
274-
/// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
275-
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
276-
///
277-
/// Renamed from `object_safe_for_dispatch`.
278-
///
279-
/// [^1]: Formerly known as "object safe".
280-
(unstable, dyn_compatible_for_dispatch, "1.83.0", Some(43561)),
281273
/// Allows using the `#[fundamental]` attribute.
282274
(unstable, fundamental, "1.0.0", Some(29635)),
283275
/// Allows using `#[link_name="llvm.*"]`.

0 commit comments

Comments
 (0)
Please sign in to comment.