Function check_language_ub

pub(crate) const fn check_language_ub() -> bool

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.