Skip to content

Commit

Permalink
Visit unevaluated constants in super_body
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Apr 23, 2020
1 parent 5313e2e commit 0107cec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustc_middle/mir/visit.rs
Expand Up @@ -288,6 +288,11 @@ macro_rules! make_mir_visitor {
}

self.visit_span(&$($mutability)? body.span);

for const_ in &$($mutability)? body.uneval_consts {
let location = START_BLOCK.start_location();
self.visit_constant(const_, location);
}
}

fn super_basic_block_data(&mut self,
Expand Down

0 comments on commit 0107cec

Please sign in to comment.