Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.02 KB

File metadata and controls

40 lines (29 loc) · 1.02 KB

Unsafety

r[safety]

r[safety.intro] Unsafe operations are those that can potentially violate the memory-safety guarantees of Rust's static semantics.

r[safety.unsafe-ops] The following language level features cannot be used in the safe subset of Rust:

r[safety.unsafe-deref]

r[safety.unsafe-static]

r[safety.unsafe-union-access]

  • Accessing a field of a union, other than to assign to it.

r[safety.unsafe-call]

  • Calling an unsafe function (including an intrinsic or foreign function).

r[safety.unsafe-impl]

r[safety.unsafe-extern]

r[safety.unsafe-attribute]