@@ -127,6 +127,7 @@ fn lint_mod(tcx: TyCtxt<'_>, module_def_id: LocalDefId) {
127
127
late:: late_lint_mod ( tcx, module_def_id, BuiltinCombinedModuleLateLintPass :: new ( ) ) ;
128
128
}
129
129
130
+ // See the comment on `BuiltinCombinedEarlyLintPass`, which is similar.
130
131
early_lint_methods ! (
131
132
declare_combined_early_lint_pass,
132
133
[
@@ -137,6 +138,9 @@ early_lint_methods!(
137
138
]
138
139
) ;
139
140
141
+ // Declare `BuiltinCombinedEarlyLintPass`, a lint pass that combines multiple
142
+ // lint passes into a single pass for maximum speed. Each `check_foo` method
143
+ // within this pass simply calls `check_foo` once per listed lint.
140
144
early_lint_methods ! (
141
145
declare_combined_early_lint_pass,
142
146
[
@@ -162,7 +166,9 @@ early_lint_methods!(
162
166
]
163
167
) ;
164
168
165
- // FIXME: Make a separate lint type which do not require typeck tables
169
+ // FIXME: Make a separate lint type which does not require typeck tables.
170
+
171
+ // See the comment on `BuiltinCombinedEarlyLintPass`, which is similar.
166
172
late_lint_methods ! (
167
173
declare_combined_late_lint_pass,
168
174
[
@@ -182,6 +188,7 @@ late_lint_methods!(
182
188
]
183
189
) ;
184
190
191
+ // See the comment on `BuiltinCombinedEarlyLintPass`, which is similar.
185
192
late_lint_methods ! (
186
193
declare_combined_late_lint_pass,
187
194
[
0 commit comments