diff --git a/src/librustc_middle/mir/visit.rs b/src/librustc_middle/mir/visit.rs index 9f8355b0cb0..8d3e862aac5 100644 --- a/src/librustc_middle/mir/visit.rs +++ b/src/librustc_middle/mir/visit.rs @@ -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,