Skip to content

Commit fa3dff3

Browse files
authoredOct 10, 2024
Rollup merge of #131475 - fmease:compiler-mv-obj-safe-dyn-compat-2, r=jieyouxu
Compiler & its UI tests: Rename remaining occurrences of "object safe" to "dyn compatible" Follow-up to #130826. Part of #130852. 1. 1st commit: Fix stupid oversights. Should've been part of #130826. 2. 2nd commit: Rename the unstable feature `object_safe_for_dispatch` to `dyn_compatible_for_dispatch`. Might not be worth the churn, you decide. 3. 3rd commit: Apply the renaming to all UI tests (contents and paths).
2 parents 75ccd9f + 20cebae commit fa3dff3

File tree

179 files changed

+535
-531
lines changed

Some content is hidden

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

179 files changed

+535
-531
lines changed
 

‎compiler/rustc_feature/src/removed.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ declare_features! (
154154
/// then removed. But there was no utility storing it separately, so now
155155
/// it's in this list.
156156
(removed, no_stack_check, "1.0.0", None, None),
157+
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn-compatible (object safe).
158+
/// Renamed to `dyn_compatible_for_dispatch`.
159+
(removed, object_safe_for_dispatch, "CURRENT_RUSTC_VERSION", Some(43561),
160+
Some("renamed to `dyn_compatible_for_dispatch`")),
157161
/// Allows using `#[on_unimplemented(..)]` on traits.
158162
/// (Moved to `rustc_attrs`.)
159163
(removed, on_unimplemented, "1.40.0", None, None),

‎compiler/rustc_feature/src/unstable.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ declare_features! (
259259
(unstable, doc_notable_trait, "1.52.0", Some(45040)),
260260
/// Allows using the `may_dangle` attribute (RFC 1327).
261261
(unstable, dropck_eyepatch, "1.10.0", Some(34761)),
262+
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn-compatible[^1].
263+
/// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
264+
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
265+
///
266+
/// Renamed from `object_safe_for_dispatch`.
267+
///
268+
/// [^1]: Formerly known as "object safe".
269+
(unstable, dyn_compatible_for_dispatch, "CURRENT_RUSTC_VERSION", Some(43561)),
262270
/// Allows using the `#[fundamental]` attribute.
263271
(unstable, fundamental, "1.0.0", Some(29635)),
264272
/// Allows using `#[link_name="llvm.*"]`.
@@ -546,13 +554,6 @@ declare_features! (
546554
(unstable, non_exhaustive_omitted_patterns_lint, "1.57.0", Some(89554)),
547555
/// Allows `for<T>` binders in where-clauses
548556
(incomplete, non_lifetime_binders, "1.69.0", Some(108185)),
549-
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn-compatible[^1].
550-
/// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
551-
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
552-
///
553-
/// [^1]: Formerly known as "object safe".
554-
// FIXME(dyn_compat_renaming): Rename feature.
555-
(unstable, object_safe_for_dispatch, "1.40.0", Some(43561)),
556557
/// Allows using enums in offset_of!
557558
(unstable, offset_of_enum, "1.75.0", Some(120141)),
558559
/// Allows using fields with slice type in offset_of!

0 commit comments

Comments
 (0)