@@ -217,7 +217,7 @@ fn check_paths<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
217
217
}
218
218
}
219
219
220
- fn dump_graph ( tcx : TyCtxt ) {
220
+ fn dump_graph ( tcx : TyCtxt < ' _ , ' _ , ' _ > ) {
221
221
let path: String = env:: var ( "RUST_DEP_GRAPH" ) . unwrap_or_else ( |_| "dep_graph" . to_string ( ) ) ;
222
222
let query = tcx. dep_graph . query ( ) ;
223
223
@@ -261,11 +261,11 @@ pub struct GraphvizDepGraph<'q>(FxHashSet<&'q DepNode>,
261
261
impl < ' a , ' tcx , ' q > dot:: GraphWalk < ' a > for GraphvizDepGraph < ' q > {
262
262
type Node = & ' q DepNode ;
263
263
type Edge = ( & ' q DepNode , & ' q DepNode ) ;
264
- fn nodes ( & self ) -> dot:: Nodes < & ' q DepNode > {
264
+ fn nodes ( & self ) -> dot:: Nodes < ' _ , & ' q DepNode > {
265
265
let nodes: Vec < _ > = self . 0 . iter ( ) . cloned ( ) . collect ( ) ;
266
266
nodes. into ( )
267
267
}
268
- fn edges ( & self ) -> dot:: Edges < ( & ' q DepNode , & ' q DepNode ) > {
268
+ fn edges ( & self ) -> dot:: Edges < ' _ , ( & ' q DepNode , & ' q DepNode ) > {
269
269
self . 1 [ ..] . into ( )
270
270
}
271
271
fn source ( & self , edge : & ( & ' q DepNode , & ' q DepNode ) ) -> & ' q DepNode {
@@ -279,18 +279,18 @@ impl<'a, 'tcx, 'q> dot::GraphWalk<'a> for GraphvizDepGraph<'q> {
279
279
impl < ' a , ' tcx , ' q > dot:: Labeller < ' a > for GraphvizDepGraph < ' q > {
280
280
type Node = & ' q DepNode ;
281
281
type Edge = ( & ' q DepNode , & ' q DepNode ) ;
282
- fn graph_id ( & self ) -> dot:: Id {
282
+ fn graph_id ( & self ) -> dot:: Id < ' _ > {
283
283
dot:: Id :: new ( "DependencyGraph" ) . unwrap ( )
284
284
}
285
- fn node_id ( & self , n : & & ' q DepNode ) -> dot:: Id {
285
+ fn node_id ( & self , n : & & ' q DepNode ) -> dot:: Id < ' _ > {
286
286
let s: String =
287
287
format ! ( "{:?}" , n) . chars ( )
288
288
. map ( |c| if c == '_' || c. is_alphanumeric ( ) { c } else { '_' } )
289
289
. collect ( ) ;
290
290
debug ! ( "n={:?} s={:?}" , n, s) ;
291
291
dot:: Id :: new ( s) . unwrap ( )
292
292
}
293
- fn node_label ( & self , n : & & ' q DepNode ) -> dot:: LabelText {
293
+ fn node_label ( & self , n : & & ' q DepNode ) -> dot:: LabelText < ' _ > {
294
294
dot:: LabelText :: label ( format ! ( "{:?}" , n) )
295
295
}
296
296
}
0 commit comments