Skip to content

Commit 97ddb9d

Browse files
Add entry about cfg!(overflow_checks)
Related to rust-lang/rust#111096
1 parent 1f8dc72 commit 97ddb9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/conditional-compilation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ This can be used to enable extra debugging code in development but not in
222222
production. For example, it controls the behavior of the standard library's
223223
[`debug_assert!`] macro.
224224

225+
### `overflow_checks`
226+
227+
Enabled when program compiled with overflow checks enabled, e.g. in development builds.
228+
225229
### `proc_macro`
226230

227231
Set when the crate being compiled is being compiled with the `proc_macro`

0 commit comments

Comments
 (0)