From c8427831eaad76c92b49e7661e2f23864fb16ce0 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Apr 2017 08:22:52 -0400 Subject: [PATCH] update `dep-graph-struct-signature` test case the `CollectItem` task no longer exists --- src/test/compile-fail/dep-graph-struct-signature.rs | 11 ----------- 1 file changed, 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 36382e776ce28..7ed8b95f88b00 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) { } }