Skip to content

Commit

Permalink
Add comment addressing Issue rust-lang#73682
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaargh committed Oct 21, 2023
1 parent 04857a8 commit e28566d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/ops/deref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
/// implicitly. In the majority of uses it should be infallible, though it may
/// be acceptable to panic if the type is misused through programmer error, for
/// example.
///
/// However, infallibility is not enforced and therefore not guaranteed.
/// As such, `unsafe` code should not rely on infallibility in general for
/// soundness.
///
/// [book]: ../../book/ch15-02-deref.html
/// [coercion]: #deref-coercion
Expand Down

0 comments on commit e28566d

Please sign in to comment.