1
Fork 0

add some comments explaining how the required_consts stuff fits together

This commit is contained in:
Ralf Jung 2023-10-06 18:25:23 +02:00
parent acb7c21507
commit fa248cd9e6
4 changed files with 10 additions and 0 deletions

View file

@ -1426,6 +1426,8 @@ fn collect_used_items<'tcx>(
);
}
// Here we rely on the visitor also visiting `required_consts`, so that we evaluate them
// and abort compilation if any of them errors.
MirUsedCollector {
tcx,
body: &body,