about summary refs log tree commit diff
path: root/compiler/rustc_feature/src/removed.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-04 02:37:13 +0000
committerMichael Goulet <michael@errs.io>2025-02-24 18:48:40 +0000
commitf3d31f77e4754d5547606d95db97fd6b2335a8ce (patch)
tree3e80529e1c79449fe992421259617915d9d48cc4 /compiler/rustc_feature/src/removed.rs
parent617aad8c2e8783f6df8e5d1f8bb1e4bcdc70aa7b (diff)
downloadrust-f3d31f77e4754d5547606d95db97fd6b2335a8ce.tar.gz
rust-f3d31f77e4754d5547606d95db97fd6b2335a8ce.zip
Remove dyn_compatible_for_dispatch
Diffstat (limited to 'compiler/rustc_feature/src/removed.rs')
-rw-r--r--compiler/rustc_feature/src/removed.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/removed.rs b/compiler/rustc_feature/src/removed.rs
index 60e7788f2c0..fc58b66ad35 100644
--- a/compiler/rustc_feature/src/removed.rs
+++ b/compiler/rustc_feature/src/removed.rs
@@ -100,6 +100,15 @@ declare_features! (
      Some("renamed to `doc_notable_trait`")),
     /// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
     (removed, dropck_parametricity, "1.38.0", Some(28498), None),
+    /// Allows making `dyn Trait` well-formed even if `Trait` is not dyn compatible[^1].
+    /// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
+    /// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
+    ///
+    /// Renamed from `object_safe_for_dispatch`.
+    ///
+    /// [^1]: Formerly known as "object safe".
+    (removed, dyn_compatible_for_dispatch, "1.83.0", Some(43561),
+     Some("removed, not used heavily and represented additional complexity in dyn compatibility")),
     /// Uses generic effect parameters for ~const bounds
     (removed, effects, "1.84.0", Some(102090),
      Some("removed, redundant with `#![feature(const_trait_impl)]`")),