@@ -3270,6 +3270,7 @@ declare_lint_pass! {
3270
3270
FFI_UNWIND_CALLS ,
3271
3271
REPR_TRANSPARENT_EXTERNAL_PRIVATE_FIELDS ,
3272
3272
NAMED_ARGUMENTS_USED_POSITIONALLY ,
3273
+ IMPLIED_BOUNDS_ENTAILMENT ,
3273
3274
]
3274
3275
}
3275
3276
@@ -3986,15 +3987,15 @@ declare_lint! {
3986
3987
/// ### Explanation
3987
3988
///
3988
3989
/// Neither the trait method, which provides no implied bounds about `'s`, nor the impl,
3989
- /// which can't name `'s`, requires the main function to prove that 's: 'static, but the
3990
- /// impl method is able to assume that 's: 'static within its own body.
3990
+ /// requires the main function to prove that 's: 'static, but the impl method is allowed
3991
+ /// to assume that ` 's: 'static` within its own body.
3991
3992
///
3992
3993
/// This can be used to implement an unsound API if used incorrectly.
3993
3994
pub IMPLIED_BOUNDS_ENTAILMENT ,
3994
- Deny ,
3995
+ Warn ,
3995
3996
"impl method assumes more implied bounds than its corresponding trait method" ,
3996
3997
@future_incompatible = FutureIncompatibleInfo {
3997
3998
reference: "issue #105572 <https://github.com/rust-lang/rust/issues/105572>" ,
3998
- reason: FutureIncompatibilityReason :: FutureReleaseErrorReportNow ,
3999
+ reason: FutureIncompatibilityReason :: FutureReleaseError ,
3999
4000
} ;
4000
4001
}
0 commit comments