We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04857a8 commit e28566dCopy full SHA for e28566d
library/core/src/ops/deref.rs
@@ -88,6 +88,10 @@
88
/// implicitly. In the majority of uses it should be infallible, though it may
89
/// be acceptable to panic if the type is misused through programmer error, for
90
/// example.
91
+///
92
+/// However, infallibility is not enforced and therefore not guaranteed.
93
+/// As such, `unsafe` code should not rely on infallibility in general for
94
+/// soundness.
95
///
96
/// [book]: ../../book/ch15-02-deref.html
97
/// [coercion]: #deref-coercion
0 commit comments