Skip to content

Commit e10fc25

Browse files
committed
Further revert Deref for Cow to its 1.90.0 state
ref: #147964 (comment)
1 parent 7ce3022 commit e10fc25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/alloc/src/borrow.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> {
333333
// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
334334
#[stable(feature = "rust1", since = "1.0.0")]
335335
impl<B: ?Sized + ToOwned> Deref for Cow<'_, B>
336-
// where
336+
where
337+
B::Owned: Borrow<B>,
337338
// B::Owned: [const] Borrow<B>,
338339
{
339340
type Target = B;

0 commit comments

Comments
 (0)