@@ -49,15 +49,12 @@ pub(super) struct NodeCollector<'a, 'hir> {
49
49
hir_body_nodes : Vec < ( DefPathHash , Fingerprint ) > ,
50
50
}
51
51
52
- fn input_dep_node_and_hash < I > (
52
+ fn input_dep_node_and_hash (
53
53
dep_graph : & DepGraph ,
54
54
hcx : & mut StableHashingContext < ' _ > ,
55
55
dep_node : DepNode ,
56
- input : I ,
57
- ) -> ( DepNodeIndex , Fingerprint )
58
- where
59
- I : for < ' a > HashStable < StableHashingContext < ' a > > ,
60
- {
56
+ input : impl for < ' a > HashStable < StableHashingContext < ' a > > ,
57
+ ) -> ( DepNodeIndex , Fingerprint ) {
61
58
let dep_node_index = dep_graph. input_task ( dep_node, & mut * hcx, & input) . 1 ;
62
59
63
60
let hash = if dep_graph. is_fully_enabled ( ) {
@@ -71,16 +68,13 @@ where
71
68
( dep_node_index, hash)
72
69
}
73
70
74
- fn alloc_hir_dep_nodes < I > (
71
+ fn alloc_hir_dep_nodes (
75
72
dep_graph : & DepGraph ,
76
73
hcx : & mut StableHashingContext < ' _ > ,
77
74
def_path_hash : DefPathHash ,
78
- item_like : I ,
75
+ item_like : impl for < ' a > HashStable < StableHashingContext < ' a > > ,
79
76
hir_body_nodes : & mut Vec < ( DefPathHash , Fingerprint ) > ,
80
- ) -> ( DepNodeIndex , DepNodeIndex )
81
- where
82
- I : for < ' a > HashStable < StableHashingContext < ' a > > ,
83
- {
77
+ ) -> ( DepNodeIndex , DepNodeIndex ) {
84
78
let sig = dep_graph
85
79
. input_task (
86
80
def_path_hash. to_dep_node ( DepKind :: Hir ) ,
0 commit comments