Skip to content

Commit 5c30c04

Browse files
committed
Run rustc_attrs dumps after typeck
1 parent 3037ee4 commit 5c30c04

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

+11-11
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| {
@@ -233,6 +222,17 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
233222
}
234223
});
235224

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+
236236
tcx.ensure_ok().check_unused_traits(());
237237
}
238238

0 commit comments

Comments
 (0)