Function check_language_ub

Source
pub(crate) const fn check_language_ub() -> bool
🔬This is a nightly-only experimental API. (ub_checks)
Expand description

Determines whether we should check for language UB.

The intention is to not do that when running in the interpreter, as that one has its own language UB checks which generally produce better errors.