Skip to content
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

Expand doc comment on MIR validation. #115942

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cjgillot
Copy link
Contributor

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 18, 2023
//! 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.
Copy link
Member

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?

@apiraino
Copy link
Contributor

think this is waiting on author to reply this comment

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 19, 2023
//! 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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//! 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?

@RalfJung
Copy link
Member

@cjgillot I think this just needs some minor wording changes?

@RalfJung
Copy link
Member

@cjgillot I recently noticed that both validators check retags. Is that kind of duplication of the checking logic expected behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants