diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-02-03 16:00:23 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-02-18 05:27:27 -0500 |
| commit | 01ebc37fa160328c2dc580cf62cf6b2194dc6f2f (patch) | |
| tree | a73126e2b14be8687bd9ef53a94c6cfc0651404f /src/test | |
| parent | daa74082670af4622044f6b1bae1e3e49fa1ef38 (diff) | |
| download | rust-01ebc37fa160328c2dc580cf62cf6b2194dc6f2f.tar.gz rust-01ebc37fa160328c2dc580cf62cf6b2194dc6f2f.zip | |
Change how dep-graph edges are handled in variance to
be more fine-grained, fixing the `dep-graph-struct-signature` test.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/dep-graph-struct-signature.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/compile-fail/dep-graph-struct-signature.rs b/src/test/compile-fail/dep-graph-struct-signature.rs index 5cfb748b6f4..c16998cd33c 100644 --- a/src/test/compile-fail/dep-graph-struct-signature.rs +++ b/src/test/compile-fail/dep-graph-struct-signature.rs @@ -74,23 +74,17 @@ mod signatures { fn indirect(x: WillChanges) { } } -// these are invalid dependencies, though sometimes we create edges -// anyway. mod invalid_signatures { use WontChange; - // FIXME due to the variance pass having overly conservative edges, - // we incorrectly think changes are needed here - #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK + #[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path + #[rustc_then_this_would_need(CollectItem)] //~ ERROR no path trait A { fn do_something_else_twice(x: WontChange); } - // FIXME due to the variance pass having overly conservative edges, - // we incorrectly think changes are needed here - #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK + #[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path + #[rustc_then_this_would_need(CollectItem)] //~ ERROR no path fn b(x: WontChange) { } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path from `WillChange` |
