Visit unevaluated constants in super_body
This commit is contained in:
parent
5313e2e929
commit
0107cecc01
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue