Skip to main content

## MISSING_ABI

# Static MISSING_ABI

Source

    pub static MISSING_ABI: &'static 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.