Skip to content

Commit

Permalink
Rollup merge of rust-lang#129500 - fee1-dead-contrib:fxrel, r=compile…
Browse files Browse the repository at this point in the history
…r-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``
  • Loading branch information
matthiaskrgr authored Aug 24, 2024
2 parents e91d825 + 693477a commit 7d5cf38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,6 @@ pub mod effects {
pub trait TyCompat<T: ?Sized> {}

impl<T: ?Sized> TyCompat<T> for T {}
impl<T: ?Sized> TyCompat<T> for Maybe {}
impl<T: ?Sized> TyCompat<Maybe> for T {}

#[lang = "EffectsIntersection"]
Expand Down

0 comments on commit 7d5cf38

Please sign in to comment.