Skip to content

Commit 267733b

Browse files
Enable const-checking HIR bodies
1 parent 3a84efd commit 267733b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_interface/passes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
875875
tcx.ensure().check_mod_loops(local_def_id);
876876
tcx.ensure().check_mod_attrs(local_def_id);
877877
tcx.ensure().check_mod_unstable_api_usage(local_def_id);
878+
tcx.ensure().check_mod_const_bodies(local_def_id);
878879
});
879880
});
880881
});

0 commit comments

Comments
 (0)