diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-04-18 14:05:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-18 14:05:44 -0400 |
| commit | ceaa55ea451c8ff40ce9c91f5d9c2f2b30e96d3b (patch) | |
| tree | 274cbcd99a15e6970a11c11d9f5ed971a9b01ec0 /src/test | |
| parent | ddf4781c1b1bc51b92094a874cb89f6545f23b9d (diff) | |
| parent | c8427831eaad76c92b49e7661e2f23864fb16ce0 (diff) | |
| download | rust-ceaa55ea451c8ff40ce9c91f5d9c2f2b30e96d3b.tar.gz rust-ceaa55ea451c8ff40ce9c91f5d9c2f2b30e96d3b.zip | |
Rollup merge of #41360 - nikomatsakis:incr-comp-issue-40746-visitors, r=eddyb
convert calls to `visit_all_item_likes_in_krate` We no longer need to track the tasks in these cases since these particular tasks have no outputs (except, potentially, errors...) and they always execute. cc #40746 r? @eddyb
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/dep-graph-struct-signature.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/compile-fail/dep-graph-struct-signature.rs b/src/test/compile-fail/dep-graph-struct-signature.rs index 36382e776ce..7ed8b95f88b 100644 --- a/src/test/compile-fail/dep-graph-struct-signature.rs +++ b/src/test/compile-fail/dep-graph-struct-signature.rs @@ -35,44 +35,36 @@ mod signatures { use WillChange; #[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path - #[rustc_then_this_would_need(CollectItem)] //~ ERROR no path trait Bar { #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK fn do_something(x: WillChange); } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK fn some_fn(x: WillChange) { } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK fn new_foo(x: u32, y: u32) -> WillChange { WillChange { x: x, y: y } } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK impl WillChange { fn new(x: u32, y: u32) -> WillChange { loop { } } } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK impl WillChange { fn method(&self, x: u32) { } } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK struct WillChanges { x: WillChange, y: WillChange } #[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK - #[rustc_then_this_would_need(CollectItem)] //~ ERROR OK fn indirect(x: WillChanges) { } } @@ -80,17 +72,14 @@ mod invalid_signatures { use WontChange; #[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); } #[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` - #[rustc_then_this_would_need(CollectItem)] //~ ERROR no path from `WillChange` fn c(x: u32) { } } |
