@@ -12,8 +12,9 @@ declare_lint! {
12
12
/// The `deref_into_dyn_supertrait` lint is output whenever there is a use of the
13
13
/// `Deref` implementation with a `dyn SuperTrait` type as `Output`.
14
14
///
15
- /// These implementations will become shadowed when the `trait_upcasting` feature is stabilized.
16
- /// The `deref` functions will no longer be called implicitly, so there might be behavior change.
15
+ /// These implementations are shadowed by the `trait_upcasting` feature (stabilized since
16
+ /// CURRENT_RUSTC_VERSION). The `deref` functions is no longer called implicitly, which might
17
+ /// be behavior change compared to previous rustc versions.
17
18
///
18
19
/// ### Example
19
20
///
@@ -43,11 +44,11 @@ declare_lint! {
43
44
///
44
45
/// ### Explanation
45
46
///
46
- /// The dyn upcasting coercion feature adds new coercion rules, taking priority
47
- /// over certain other coercion rules, which will cause some behavior change.
47
+ /// The dyn upcasting coercion feature added a new coercion rules, taking priority
48
+ /// over certain other coercion rules, which caused some behavior change.
48
49
pub DEREF_INTO_DYN_SUPERTRAIT ,
49
50
Warn ,
50
- "`Deref` implementation usage with a supertrait trait object for output might be shadowed in the future " ,
51
+ "`Deref` implementation usage with a supertrait trait object for output is shadowed by trait upcasting " ,
51
52
@future_incompatible = FutureIncompatibleInfo {
52
53
reason: FutureIncompatibilityReason :: FutureReleaseSemanticsChange ,
53
54
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>" ,
0 commit comments