1
Fork 0

Auto merge of #113312 - Ddystopia:auto-trait-fun, r=lcnr

discard default auto trait impls if explicit ones exist (rebase of #85048)

Rebase of #85048
This commit is contained in:
bors 2023-07-28 10:41:00 +00:00
commit e4c98caffe
8 changed files with 146 additions and 20 deletions

View file

@ -4052,12 +4052,12 @@ declare_lint! {
///
/// The compiler disables the automatic implementation if an explicit one
/// exists for given type constructor. The exact rules governing this
/// are currently unsound, quite subtle, and will be modified in the future.
/// This change will cause the automatic implementation to be disabled in more
/// were previously unsound, quite subtle, and have been recently modified.
/// This change caused the automatic implementation to be disabled in more
/// cases, potentially breaking some code.
pub SUSPICIOUS_AUTO_TRAIT_IMPLS,
Warn,
"the rules governing auto traits will change in the future",
"the rules governing auto traits have recently changed resulting in potential breakage",
@future_incompatible = FutureIncompatibleInfo {
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
reference: "issue #93367 <https://github.com/rust-lang/rust/issues/93367>",