File tree 2 files changed +22
-2
lines changed
compiler/rustc_lint_defs/src
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -4489,11 +4489,11 @@ declare_lint! {
4489
4489
/// on itself), the blanket impl is not considered to hold for `u8`. This will
4490
4490
/// change in a future release.
4491
4491
pub COINDUCTIVE_OVERLAP_IN_COHERENCE ,
4492
- Warn ,
4492
+ Deny ,
4493
4493
"impls that are not considered to overlap may be considered to \
4494
4494
overlap in the future",
4495
4495
@future_incompatible = FutureIncompatibleInfo {
4496
- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
4496
+ reason: FutureIncompatibilityReason :: FutureReleaseErrorReportInDeps ,
4497
4497
reference: "issue #114040 <https://github.com/rust-lang/rust/issues/114040>" ,
4498
4498
} ;
4499
4499
}
Original file line number Diff line number Diff line change @@ -19,3 +19,23 @@ LL | #![deny(coinductive_overlap_in_coherence)]
19
19
20
20
error: aborting due to previous error
21
21
22
+ Future incompatibility report: Future breakage diagnostic:
23
+ error: implementations of `PartialEq<Interval<_>>` for `Interval<_>` will conflict in the future
24
+ --> $DIR/warn-when-cycle-is-error-in-coherence.rs:13:1
25
+ |
26
+ LL | #[derive(PartialEq, Default)]
27
+ | --------- the second impl is here
28
+ ...
29
+ LL | impl<T, Q> PartialEq<Q> for Interval<T>
30
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the first impl is here
31
+ |
32
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33
+ = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
34
+ = note: impls that are not considered to overlap may be considered to overlap in the future
35
+ = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
36
+ note: the lint level is defined here
37
+ --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
38
+ |
39
+ LL | #![deny(coinductive_overlap_in_coherence)]
40
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
+
You can’t perform that action at this time.
0 commit comments