Skip to content

Commit 7d5cf38

Browse files
authored
Rollup merge of rust-lang#129500 - fee1-dead-contrib:fxrel, r=compiler-errors
remove invalid `TyCompat` relation for effects if the current impl uses `Maybe` (`impl const`), the parent impl must use `Maybe` (`impl const`) as well. I'd like to rename `TyCompat` to `Sub` which is probably clearer. But it would conflict with my other PR. r? ``@rust-lang/project-const-traits``
2 parents e91d825 + 693477a commit 7d5cf38

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: core/src/marker.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,6 @@ pub mod effects {
10971097
pub trait TyCompat<T: ?Sized> {}
10981098

10991099
impl<T: ?Sized> TyCompat<T> for T {}
1100-
impl<T: ?Sized> TyCompat<T> for Maybe {}
11011100
impl<T: ?Sized> TyCompat<Maybe> for T {}
11021101

11031102
#[lang = "EffectsIntersection"]

0 commit comments

Comments
 (0)