Skip to content

Commit a970a0d

Browse files
committed
change deref_into_dyn_supertrait lint wording
(so that it doesn't talk about trait upcasting stabilization in the future tense)
1 parent da9a85a commit a970a0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compiler/rustc_lint/src/deref_into_dyn_supertrait.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ declare_lint! {
1212
/// The `deref_into_dyn_supertrait` lint is output whenever there is a use of the
1313
/// `Deref` implementation with a `dyn SuperTrait` type as `Output`.
1414
///
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.
1718
///
1819
/// ### Example
1920
///
@@ -43,11 +44,11 @@ declare_lint! {
4344
///
4445
/// ### Explanation
4546
///
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.
4849
pub DEREF_INTO_DYN_SUPERTRAIT,
4950
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",
5152
@future_incompatible = FutureIncompatibleInfo {
5253
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
5354
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",

0 commit comments

Comments
 (0)