Skip to content

Commit

Permalink
More test deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Jan 3, 2019
1 parent 6caa4ce commit 32118a9
Show file tree
Hide file tree
Showing 30 changed files with 41 additions and 446 deletions.
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-bigint-int.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// run-pass
// aux-build:coherence_lib.rs
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

// pretty-expanded FIXME #23616

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-bigint-vecint.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// run-pass
// aux-build:coherence_lib.rs
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

// pretty-expanded FIXME #23616

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-blanket.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// run-pass
#![allow(unused_imports)]
// aux-build:coherence_lib.rs
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

// pretty-expanded FIXME #23616

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// run-pass
#![allow(dead_code)]
// aux-build:coherence_lib.rs
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

// pretty-expanded FIXME #23616

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-impl-in-fn.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(dead_code)]
#![allow(non_camel_case_types)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(dead_code)]
// aux-build:coherence_lib.rs

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-iterator-vec.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(dead_code)]
// aux-build:coherence_lib.rs

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-multidispatch-tuple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(unused_imports)]
// pretty-expanded FIXME #23616

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-negative-impls-safe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(dead_code)]
// pretty-expanded FIXME #23616

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-rfc447-constrained.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
// check that trait matching can handle impls whose types are only
// constrained by a projection.

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence-subtyping.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
// Test that two distinct impls which match subtypes of one another
// yield coherence errors (or not) depending on the variance.

Expand Down
4 changes: 4 additions & 0 deletions src/test/run-pass/coherence/coherence-where-clause.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

use std::fmt::Debug;
use std::default::Default;

Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/coherence/coherence_copy_like.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// run-pass
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]
#![allow(dead_code)]
// Test that we are able to introduce a negative constraint that
// `MyType: !MyTrait` along with other "fundamental" wrappers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
#![feature(re_rebalance_coherence)]

// run-pass
Expand Down

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions src/test/run-pass/re_rebalance_coherence/coherence-bigint-int.rs

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/run-pass/re_rebalance_coherence/coherence-blanket.rs

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions src/test/run-pass/re_rebalance_coherence/coherence-impl-in-fn.rs

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions src/test/run-pass/re_rebalance_coherence/coherence-iterator-vec.rs

This file was deleted.

This file was deleted.

Loading

0 comments on commit 32118a9

Please sign in to comment.