We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca2057 commit 2c899ffCopy full SHA for 2c899ff
src/librustc/diagnostics.rs
@@ -731,9 +731,14 @@ type X = u32; // ok!
731
"##,
732
733
E0133: r##"
734
-Using unsafe functionality, such as dereferencing raw pointers and calling
735
-functions via FFI or marked as unsafe, is potentially dangerous and disallowed
736
-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:
+
737
+- Dereferencing raw pointers
738
+- Calling functions via FFI
739
+- Calling functions marked unsafe
740
741
+These safety checks can be relaxed for a section of the code
742
by wrapping the unsafe instructions with an `unsafe` block. For instance:
743
744
```
0 commit comments