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