@@ -195,17 +195,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
195
195
let _: R = tcx. ensure_ok ( ) . crate_inherent_impls_overlap_check ( ( ) ) ;
196
196
} ) ;
197
197
198
- if tcx. features ( ) . rustc_attrs ( ) {
199
- tcx. sess . time ( "dumping_rustc_attr_data" , || {
200
- outlives:: dump:: inferred_outlives ( tcx) ;
201
- variance:: dump:: variances ( tcx) ;
202
- collect:: dump:: opaque_hidden_types ( tcx) ;
203
- collect:: dump:: predicates_and_item_bounds ( tcx) ;
204
- collect:: dump:: def_parents ( tcx) ;
205
- collect:: dump:: vtables ( tcx) ;
206
- } ) ;
207
- }
208
-
209
198
// Make sure we evaluate all static and (non-associated) const items, even if unused.
210
199
// If any of these fail to evaluate, we do not want this crate to pass compilation.
211
200
tcx. par_hir_body_owners ( |item_def_id| {
@@ -229,6 +218,17 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
229
218
}
230
219
} ) ;
231
220
221
+ if tcx. features ( ) . rustc_attrs ( ) {
222
+ tcx. sess . time ( "dumping_rustc_attr_data" , || {
223
+ outlives:: dump:: inferred_outlives ( tcx) ;
224
+ variance:: dump:: variances ( tcx) ;
225
+ collect:: dump:: opaque_hidden_types ( tcx) ;
226
+ collect:: dump:: predicates_and_item_bounds ( tcx) ;
227
+ collect:: dump:: def_parents ( tcx) ;
228
+ collect:: dump:: vtables ( tcx) ;
229
+ } ) ;
230
+ }
231
+
232
232
tcx. ensure_ok ( ) . check_unused_traits ( ( ) ) ;
233
233
}
234
234
0 commit comments