Skip to content

Commit c86e33b

Browse files
committed
Run rustc_attrs dumps after typeck
1 parent bd58700 commit c86e33b

File tree

1 file changed

+11
-11
lines changed
  • compiler/rustc_hir_analysis/src

1 file changed

+11
-11
lines changed

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
195195
let _: R = tcx.ensure_ok().crate_inherent_impls_overlap_check(());
196196
});
197197

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-
209198
// Make sure we evaluate all static and (non-associated) const items, even if unused.
210199
// If any of these fail to evaluate, we do not want this crate to pass compilation.
211200
tcx.par_hir_body_owners(|item_def_id| {
@@ -229,6 +218,17 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
229218
}
230219
});
231220

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+
232232
tcx.ensure_ok().check_unused_traits(());
233233
}
234234

0 commit comments

Comments
 (0)