Skip to main content

assert_abi_version

Function assert_abi_version 

Source
pub fn assert_abi_version()
Expand description

Assert that the compiler’s expected ABI version matches this build’s.

Called once at CLI / LSP startup. Today the compiler and runtime are the same binary, so the assertion is trivially satisfied; the point is to have the check in place before the runtime is split across build artifacts.

§Panics

Panics if the versions disagree. A disagreement is always a build bug, never a user-facing condition.