rustc_lint::builtin

Static INLINE_NO_SANITIZE

source
pub static INLINE_NO_SANITIZE: &'static Lint
Expand description

The inline_no_sanitize lint detects incompatible use of #[inline(always)] and #[no_sanitize(...)].

§Example

#![feature(no_sanitize)]

#[inline(always)]
#[no_sanitize(address)]
fn x() {}

fn main() {
    x()
}

{{produces}}

§Explanation

The use of the #[inline(always)] attribute prevents the the #[no_sanitize(...)] attribute from working. Consider temporarily removing inline attribute.