| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-02-16 | [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives | 许杰友 Jieyou Xu (Joe) | -2/+2 | |
| 2023-05-11 | Add support for `cfg(overflow_checks)` | AngelicosPhosphoros | -0/+19 | |
| This PR adds support for detecting if overflow checks are enabled in similar fashion as debug_assertions are detected. Possible use-case of this, for example, if we want to use checked integer casts in builds with overflow checks, e.g. ```rust pub fn cast(val: usize)->u16 { if cfg!(overflow_checks) { val.try_into().unwrap() } else{ vas as _ } } ``` Resolves #91130. Tracking issue: #111466. | ||||
