diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-01-26 15:26:49 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-01-29 21:10:35 +0100 |
| commit | 219f818c1be77801f8c1f2e0c9fc74d4ab64be0b (patch) | |
| tree | eee27969a2789a8f3b007bbae3e643fc3a5fcc83 | |
| parent | edf0cac94ba9f192acecd5ba3316a048342847a9 (diff) | |
| download | rust-219f818c1be77801f8c1f2e0c9fc74d4ab64be0b.tar.gz rust-219f818c1be77801f8c1f2e0c9fc74d4ab64be0b.zip | |
Skip some test passes
| -rw-r--r-- | src/librustc_typeck/lib.rs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs index b51c2900399..d5e870bb28d 100644 --- a/src/librustc_typeck/lib.rs +++ b/src/librustc_typeck/lib.rs @@ -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", || @@ -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))?; |
