Auto merge of #26172 - nham:add_E0116, r=alexcrichton
Also improves the wording of the E0133 description. cc #24407
This commit is contained in:
commit
fc9e424550
5 changed files with 33 additions and 8 deletions
|
|
@ -312,8 +312,8 @@ http://doc.rust-lang.org/reference.html#ffi-attributes
|
|||
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. As such, those safety checks can be temporarily relaxed by
|
||||
wrapping the unsafe instructions inside an `unsafe` block. For instance:
|
||||
by safety checks. These safety checks can be relaxed for a section of the code
|
||||
by wrapping the unsafe instructions with an `unsafe` block. For instance:
|
||||
|
||||
```
|
||||
unsafe fn f() { return; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue