Add entry about `cfg!(overflow_checks)`

Related to https://github.com/rust-lang/rust/pull/111096
This commit is contained in:
AngelicosPhosphoros 2023-05-02 19:33:43 +04:00
parent 1f8dc727e9
commit 97ddb9dfa5
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ This can be used to enable extra debugging code in development but not in
production. For example, it controls the behavior of the standard library's
[`debug_assert!`] macro.
### `overflow_checks`
Enabled when program compiled with overflow checks enabled, e.g. in development builds.
### `proc_macro`
Set when the crate being compiled is being compiled with the `proc_macro`