File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -4449,11 +4449,11 @@ declare_lint! {
44494449 /// on itself), the blanket impl is not considered to hold for `u8`. This will
44504450 /// change in a future release.
44514451 pub COINDUCTIVE_OVERLAP_IN_COHERENCE ,
4452- Warn ,
4452+ Deny ,
44534453 "impls that are not considered to overlap may be considered to \
44544454 overlap in the future",
44554455 @future_incompatible = FutureIncompatibleInfo {
4456- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
4456+ reason: FutureIncompatibilityReason :: FutureReleaseErrorReportInDeps ,
44574457 reference: "issue #114040 <https://github.com/rust-lang/rust/issues/114040>" ,
44584458 } ;
44594459}
Original file line number Diff line number Diff line change @@ -24,3 +24,23 @@ LL | #![deny(coinductive_overlap_in_coherence)]
2424
2525error: aborting due to previous error
2626
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the first impl is here
36+ |
37+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
38+ = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
39+ = note: impls that are not considered to overlap may be considered to overlap in the future
40+ = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
41+ note: the lint level is defined here
42+ --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
43+ |
44+ LL | #![deny(coinductive_overlap_in_coherence)]
45+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+
You can’t perform that action at this time.
0 commit comments