Auto merge of #15567 - HKalbasi:mir, r=HKalbasi

Ignore enum variants in analysis stats of mir bodies
This commit is contained in:
bors 2023-09-06 21:42:42 +00:00
commit d04cff6102

View File

@ -317,9 +317,13 @@ fn run_const_eval(&self, db: &RootDatabase, consts: &[hir::Const], verbosity: Ve
fn run_mir_lowering(&self, db: &RootDatabase, bodies: &[DefWithBody], verbosity: Verbosity) {
let mut sw = self.stop_watch();
let all = bodies.len() as u64;
let mut all = 0;
let mut fail = 0;
for &body in bodies {
if matches!(body, DefWithBody::Variant(_)) {
continue;
}
all += 1;
let Err(e) = db.mir_body(body.into()) else {
continue;
};