const
checks
#49
Labels
C - Enhancement
Category: New feature or request.
C - Performance
Category: Related to performance.
P - Low
Priority: Not particularly urgent.
S - Blocked on Rust Feature
Status: Cannot continue without a Rust feature being stabilized.
S - Needs Investigation
Status: Further investigation is needed.
There are some checks that can be evaluated at compile time, rather than runtime. These are:
These are all programmer errors, and should be made known as soon as possible.
These checks can be moved to compile-time using
const fn
s. For example, a check could be run as follows:const _: () = some_check()
. However, all of these cases will currently require unstable nightly features. Therefore, I think it best to introduce aunstable_const_checks
feature that requiresnightly
, allowing users to opt-in to these checks instead of the run-time checks.Related issues: #40 and #27.
The text was updated successfully, but these errors were encountered: