mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
Ignore enum variants in analysis stats of mir bodies
This commit is contained in:
parent
77b359ae31
commit
e4c469321c
1 changed files with 5 additions and 1 deletions
|
@ -317,9 +317,13 @@ impl flags::AnalysisStats {
|
|||
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue