Disable non-required MIR opts with optimize(none)
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
@@ -46,6 +46,12 @@ pub enum OptimizeAttr {
|
||||
Size,
|
||||
}
|
||||
|
||||
impl OptimizeAttr {
|
||||
pub fn do_not_optimize(&self) -> bool {
|
||||
matches!(self, Self::DoNotOptimize)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Encodable, Decodable)]
|
||||
pub enum DiagnosticAttribute {
|
||||
// tidy-alphabetical-start
|
||||
|
||||
Reference in New Issue
Block a user