doc: improve E0133 explanation

This commit is contained in:
Tshepang Lekhonkhobe 2015-08-19 19:47:01 +02:00
parent aca2057ed5
commit 2c899ffe13

View file

@ -731,9 +731,14 @@ type X = u32; // ok!
"##,
E0133: r##"
Using unsafe functionality, such as dereferencing raw pointers and calling
functions via FFI or marked as unsafe, is potentially dangerous and disallowed
by safety checks. These safety checks can be relaxed for a section of the code
Using unsafe functionality, is potentially dangerous and disallowed
by safety checks. Examples:
- Dereferencing raw pointers
- Calling functions via FFI
- Calling functions marked unsafe
These safety checks can be relaxed for a section of the code
by wrapping the unsafe instructions with an `unsafe` block. For instance:
```