Skip to content

Commit c842783

Browse files
committed
update dep-graph-struct-signature test case
the `CollectItem` task no longer exists
1 parent 8388772 commit c842783

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/test/compile-fail/dep-graph-struct-signature.rs

-11
Original file line numberDiff line numberDiff line change
@@ -35,62 +35,51 @@ mod signatures {
3535
use WillChange;
3636

3737
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path
38-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR no path
3938
trait Bar {
4039
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
41-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
4240
fn do_something(x: WillChange);
4341
}
4442

4543
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
46-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
4744
fn some_fn(x: WillChange) { }
4845

4946
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
50-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
5147
fn new_foo(x: u32, y: u32) -> WillChange {
5248
WillChange { x: x, y: y }
5349
}
5450

5551
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
56-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
5752
impl WillChange {
5853
fn new(x: u32, y: u32) -> WillChange { loop { } }
5954
}
6055

6156
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
62-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
6357
impl WillChange {
6458
fn method(&self, x: u32) { }
6559
}
6660

6761
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
68-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
6962
struct WillChanges {
7063
x: WillChange,
7164
y: WillChange
7265
}
7366

7467
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
75-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
7668
fn indirect(x: WillChanges) { }
7769
}
7870

7971
mod invalid_signatures {
8072
use WontChange;
8173

8274
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path
83-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR no path
8475
trait A {
8576
fn do_something_else_twice(x: WontChange);
8677
}
8778

8879
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path
89-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR no path
9080
fn b(x: WontChange) { }
9181

9282
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR no path from `WillChange`
93-
#[rustc_then_this_would_need(CollectItem)] //~ ERROR no path from `WillChange`
9483
fn c(x: u32) { }
9584
}
9685

0 commit comments

Comments
 (0)