We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820bfff commit dcde4c5Copy full SHA for dcde4c5
compiler/rustc_mir_transform/src/validate.rs
@@ -97,6 +97,11 @@ impl<'tcx> crate::MirPass<'tcx> for Validator {
97
}
98
99
100
+/// This checker covers basic properties of the control-flow graph, (dis)allowed statements and terminators.
101
+/// Everything checked here must be stable under substitution of generic parameters.
102
+///
103
+/// Everything that depends on types, or otherwise can be affected by generic paramters,
104
+/// muts be checked in `TypeChecker`.
105
struct CfgChecker<'a, 'tcx> {
106
when: &'a str,
107
body: &'a Body<'tcx>,
0 commit comments