add some comments explaining how the required_consts stuff fits together
This commit is contained in:
parent
acb7c21507
commit
fa248cd9e6
4 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue