Skip to content

Commit

Permalink
feature gate iscovariant impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 10, 2021
1 parent f056bc4 commit a61281e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/yoke/src/is_covariant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub unsafe trait IsCovariant<'a>: 'a {}
unsafe impl<'a> IsCovariant<'a> for () {}

unsafe impl<'a> IsCovariant<'a> for str {}
#[cfg(feature = "alloc")]
unsafe impl<'a> IsCovariant<'a> for String {}

unsafe impl<'a, T: IsCovariant<'a>> IsCovariant<'a> for Option<T> {}
Expand Down

0 comments on commit a61281e

Please sign in to comment.