rustc_lint_defs::builtin

Static MISSING_ABI

source
pub static MISSING_ABI: &Lint
Expand description

The missing_abi lint detects cases where the ABI is omitted from extern declarations.

§Example

#![deny(missing_abi)]

extern fn foo() {}

{{produces}}

§Explanation

For historic reasons, Rust implicitly selects C as the default ABI for extern declarations. Other ABIs like C-unwind and system have been added since then, and especially with their addition seeing the ABI easily makes code review easier.