INLINE_NO_SANITIZE in rustc_lint_defs::builtin - Rust
Description: The `inline_no_sanitize` lint detects incompatible use of `#[inline(always)]` and `#[sanitize(xyz = "off")]`.

Skip to main content

## INLINE_NO_SANITIZE

# Static INLINE_NO_SANITIZE

Source

    pub static INLINE_NO_SANITIZE: &Lint

Expand description

The `inline_no_sanitize` lint detects incompatible use of `#[inline(always)]` and `#[sanitize(xyz = "off")]`.

#### §Example

    #![feature(sanitize)]

    #[inline(always)]
    #[sanitize(address = "off")]
    fn x() {}

    fn main() {
        x()
    }

{{produces}}

#### §Explanation

The use of the `#[inline(always)]` attribute prevents the the `#[sanitize(xyz = "off")]` attribute from working. Consider temporarily removing `inline` attribute.