cranelift_codegen/isa/x64/lower/isle/generated_code.rs
1// See https://github.com/rust-lang/rust/issues/47995: we cannot use `#![...]`
2// attributes inside of the generated ISLE source below because we include!()
3// it. We must include!() it because its path depends on an environment
4// variable; and also because of this, we can't do the `#[path = "..."] mod
5// generated_code;` trick either.
6#![expect(
7 dead_code,
8 unreachable_patterns,
9 unused_imports,
10 unused_variables,
11 missing_docs,
12 clippy::clone_on_copy,
13 reason = "generated code"
14)]
15
16include!(concat!(env!("ISLE_DIR"), "/isle_x64.rs"));