Merge pull request #294 from JohnTitor/clarify-safe-vs-unsafe-relation

Clarify the Safe vs. Unsafe Rust relationship
pull/322/head
Eric Huss 3 years ago committed by GitHub
commit 6c2aeef84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ of Safe Rust, the *soundness property*:
The design of the safe/unsafe split means that there is an asymmetric trust
relationship between Safe and Unsafe Rust. Safe Rust inherently has to
trust that any Unsafe Rust it touches has been written correctly.
On the other hand, Unsafe Rust has to be very careful about trusting Safe Rust.
On the other hand, Unsafe Rust cannot trust Safe Rust without care.
As an example, Rust has the [`PartialOrd`] and [`Ord`] traits to differentiate
between types which can "just" be compared, and those that provide a "total"

Loading…
Cancel
Save