summaryrefslogtreecommitdiffstats
path: root/library/core/src/hash/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/hash/mod.rs')
-rw-r--r--library/core/src/hash/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/hash/mod.rs b/library/core/src/hash/mod.rs
index 794a57f09..35b757dc1 100644
--- a/library/core/src/hash/mod.rs
+++ b/library/core/src/hash/mod.rs
@@ -153,6 +153,11 @@ mod sip;
/// Thankfully, you won't need to worry about upholding this property when
/// deriving both [`Eq`] and `Hash` with `#[derive(PartialEq, Eq, Hash)]`.
///
+/// Violating this property is a logic error. The behavior resulting from a logic error is not
+/// specified, but users of the trait must ensure that such logic errors do *not* result in
+/// undefined behavior. This means that `unsafe` code **must not** rely on the correctness of these
+/// methods.
+///
/// ## Prefix collisions
///
/// Implementations of `hash` should ensure that the data they