Skip to content

Commit 3a7e3c2

Browse files
committed
Rollup merge of #27533 - steveklabnik:gh27109, r=Gankro
This should be a bit more prominent. Fixes #27109
2 parents 50dd497 + 4a68a7e commit 3a7e3c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcollections/borrow.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ use self::Cow::*;
3838
/// type can be borrowed as multiple different types. In particular, `Vec<T>:
3939
/// Borrow<Vec<T>>` and `Vec<T>: Borrow<[T]>`.
4040
///
41+
/// If you are implementing `Borrow` and both `Self` and `Borrowed` implement
42+
/// `Hash`, `Eq`, and/or `Ord`, they must produce the same result.
43+
///
4144
/// `Borrow` is very similar to, but different than, `AsRef`. See
4245
/// [the book][book] for more.
4346
///

0 commit comments

Comments
 (0)