Rollup merge of #27905 - tshepang:E0133, r=brson

This commit is contained in:
Steve Klabnik 2015-08-25 09:43:06 -04:00
commit 03c6b4ce84

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:
```