change deref_into_dyn_supertrait lint wording
(so that it doesn't talk about trait upcasting stabilization in the future tense)
This commit is contained in:
@@ -12,8 +12,9 @@ declare_lint! {
|
|||||||
/// The `deref_into_dyn_supertrait` lint is output whenever there is a use of the
|
/// The `deref_into_dyn_supertrait` lint is output whenever there is a use of the
|
||||||
/// `Deref` implementation with a `dyn SuperTrait` type as `Output`.
|
/// `Deref` implementation with a `dyn SuperTrait` type as `Output`.
|
||||||
///
|
///
|
||||||
/// These implementations will become shadowed when the `trait_upcasting` feature is stabilized.
|
/// These implementations are shadowed by the `trait_upcasting` feature (stabilized since
|
||||||
/// The `deref` functions will no longer be called implicitly, so there might be behavior change.
|
/// CURRENT_RUSTC_VERSION). The `deref` functions is no longer called implicitly, which might
|
||||||
|
/// be behavior change compared to previous rustc versions.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
@@ -43,11 +44,11 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ### Explanation
|
/// ### Explanation
|
||||||
///
|
///
|
||||||
/// The dyn upcasting coercion feature adds new coercion rules, taking priority
|
/// The dyn upcasting coercion feature added a new coercion rules, taking priority
|
||||||
/// over certain other coercion rules, which will cause some behavior change.
|
/// over certain other coercion rules, which caused some behavior change.
|
||||||
pub DEREF_INTO_DYN_SUPERTRAIT,
|
pub DEREF_INTO_DYN_SUPERTRAIT,
|
||||||
Warn,
|
Warn,
|
||||||
"`Deref` implementation usage with a supertrait trait object for output might be shadowed in the future",
|
"`Deref` implementation usage with a supertrait trait object for output is shadowed by trait upcasting",
|
||||||
@future_incompatible = FutureIncompatibleInfo {
|
@future_incompatible = FutureIncompatibleInfo {
|
||||||
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
|
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
|
||||||
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",
|
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",
|
||||||
|
|||||||
Reference in New Issue
Block a user