-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Expand doc comment on MIR validation. #115942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
//! TypeChecker is meant to verify MIR types. It is used by the inliner to verify that type | ||
//! instanciation do not mess things up (for instance #112332 and earlier instances). | ||
//! | ||
//! If a check depends on types, it should go in TypeChecker, otherwise it can go in CfgChecker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You said it's "everything affected by substitution", not just types, right? E.g. if something depends on consts (which could be const generics) it also should go into TypeChecker
?
think this is waiting on author to reply this comment @rustbot author |
//! statements and terminators... | ||
//! | ||
//! TypeChecker is meant to verify MIR types. It is used by the inliner to verify that type | ||
//! instanciation do not mess things up (for instance #112332 and earlier instances). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//! instanciation do not mess things up (for instance #112332 and earlier instances). | |
//! instantiation do not mess things up (for instance #112332 and earlier instances). |
typo?
@cjgillot I think this just needs some minor wording changes? |
@cjgillot I recently noticed that both validators check retags. Is that kind of duplication of the checking logic expected behavior? |
☔ The latest upstream changes (presumably #125521) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage: |
@cjgillot @rustbot label: +S-inactive |
r? @RalfJung