@@ -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| {
@@ -233,6 +222,17 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
233
222
}
234
223
} ) ;
235
224
225
+ if tcx. features ( ) . rustc_attrs ( ) {
226
+ tcx. sess . time ( "dumping_rustc_attr_data" , || {
227
+ outlives:: dump:: inferred_outlives ( tcx) ;
228
+ variance:: dump:: variances ( tcx) ;
229
+ collect:: dump:: opaque_hidden_types ( tcx) ;
230
+ collect:: dump:: predicates_and_item_bounds ( tcx) ;
231
+ collect:: dump:: def_parents ( tcx) ;
232
+ collect:: dump:: vtables ( tcx) ;
233
+ } ) ;
234
+ }
235
+
236
236
tcx. ensure_ok ( ) . check_unused_traits ( ( ) ) ;
237
237
}
238
238
0 commit comments