1 //! Wrapper environment for generated code from optimization rules in ISLE. 2 3 // See https://github.com/rust-lang/rust/issues/47995: we cannot use `#![...]` attributes inside of 4 // the generated ISLE source below because we include!() it. We must include!() it because its path 5 // depends on an environment variable; and also because of this, we can't do the `#[path = "..."] 6 // mod generated_code;` trick either. 7 #![allow(dead_code, unreachable_code, unreachable_patterns)] 8 #![allow(unused_imports, unused_variables, non_snake_case, unused_mut)] 9 #![allow(irrefutable_let_patterns, non_camel_case_types, clippy::clone_on_copy)] 10 11 include!(concat!(env!("ISLE_DIR"), "/isle_opt.rs")); 12