Visit unevaluated constants in super_body

This commit is contained in:
Santiago Pastorino 2020-04-06 17:49:49 -03:00
parent 5313e2e929
commit 0107cecc01
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -288,6 +288,11 @@ macro_rules! type_annotations {
}
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,