Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0107cec

Browse files
committed
Visit unevaluated constants in super_body
1 parent 5313e2e commit 0107cec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_middle/mir/visit.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ macro_rules! make_mir_visitor {
288288
}
289289

290290
self.visit_span(&$($mutability)? body.span);
291+
292+
for const_ in &$($mutability)? body.uneval_consts {
293+
let location = START_BLOCK.start_location();
294+
self.visit_constant(const_, location);
295+
}
291296
}
292297

293298
fn super_basic_block_data(&mut self,

0 commit comments

Comments
 (0)