File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,21 @@ This error indicates that an attempt was made to divide by zero (or take the
173
173
remainder of a zero divisor) in a static or constant expression.
174
174
"## ,
175
175
176
+ E0133 : r##"
177
+ Using unsafe functionality, such as dereferencing raw pointers and calling
178
+ functions via FFI or marked as unsafe, is potentially dangerous and disallowed
179
+ by safety checks. As such, those safety checks can be temporarily relaxed by
180
+ wrapping the unsafe instructions inside an `unsafe` block. For instance:
181
+
182
+ unsafe fn f() { return; }
183
+
184
+ fn main() {
185
+ unsafe { f(); }
186
+ }
187
+
188
+ See also http://doc.rust-lang.org/book/unsafe-code.html
189
+ "## ,
190
+
176
191
E0152 : r##"
177
192
Lang items are already implemented in the standard library. Unless you are
178
193
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -405,7 +420,6 @@ register_diagnostics! {
405
420
E0080 , // enum variant: constant evaluation error
406
421
E0109 ,
407
422
E0110 ,
408
- E0133 ,
409
423
E0134 ,
410
424
E0135 ,
411
425
E0136 ,
You can’t perform that action at this time.
0 commit comments