Skip to content

Commit

Permalink
Skip some test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Jan 29, 2019
1 parent edf0cac commit 219f818
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/librustc_typeck/lib.rs
Expand Up @@ -334,10 +334,12 @@ pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>)

})?;

tcx.sess.track_errors(|| {
time(tcx.sess, "outlives testing", ||
outlives::test::test_inferred_outlives(tcx));
})?;
if tcx.features().rustc_attrs {
tcx.sess.track_errors(|| {
time(tcx.sess, "outlives testing", ||
outlives::test::test_inferred_outlives(tcx));
})?;
}

tcx.sess.track_errors(|| {
time(tcx.sess, "impl wf inference", ||
Expand All @@ -349,10 +351,12 @@ pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>)
coherence::check_coherence(tcx));
})?;

tcx.sess.track_errors(|| {
time(tcx.sess, "variance testing", ||
variance::test::test_variance(tcx));
})?;
if tcx.features().rustc_attrs {
tcx.sess.track_errors(|| {
time(tcx.sess, "variance testing", ||
variance::test::test_variance(tcx));
})?;
}

time(tcx.sess, "wf checking", || check::check_wf_new(tcx))?;

Expand Down

0 comments on commit 219f818

Please sign in to comment.