@@ -217,7 +217,7 @@ fn check_paths<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
217217 }
218218}
219219
220- fn dump_graph ( tcx : TyCtxt ) {
220+ fn dump_graph ( tcx : TyCtxt < ' _ , ' _ , ' _ > ) {
221221 let path: String = env:: var ( "RUST_DEP_GRAPH" ) . unwrap_or_else ( |_| "dep_graph" . to_string ( ) ) ;
222222 let query = tcx. dep_graph . query ( ) ;
223223
@@ -261,11 +261,11 @@ pub struct GraphvizDepGraph<'q>(FxHashSet<&'q DepNode>,
261261impl < ' a , ' tcx , ' q > dot:: GraphWalk < ' a > for GraphvizDepGraph < ' q > {
262262 type Node = & ' q DepNode ;
263263 type Edge = ( & ' q DepNode , & ' q DepNode ) ;
264- fn nodes ( & self ) -> dot:: Nodes < & ' q DepNode > {
264+ fn nodes ( & self ) -> dot:: Nodes < ' _ , & ' q DepNode > {
265265 let nodes: Vec < _ > = self . 0 . iter ( ) . cloned ( ) . collect ( ) ;
266266 nodes. into ( )
267267 }
268- fn edges ( & self ) -> dot:: Edges < ( & ' q DepNode , & ' q DepNode ) > {
268+ fn edges ( & self ) -> dot:: Edges < ' _ , ( & ' q DepNode , & ' q DepNode ) > {
269269 self . 1 [ ..] . into ( )
270270 }
271271 fn source ( & self , edge : & ( & ' q DepNode , & ' q DepNode ) ) -> & ' q DepNode {
@@ -279,18 +279,18 @@ impl<'a, 'tcx, 'q> dot::GraphWalk<'a> for GraphvizDepGraph<'q> {
279279impl < ' a , ' tcx , ' q > dot:: Labeller < ' a > for GraphvizDepGraph < ' q > {
280280 type Node = & ' q DepNode ;
281281 type Edge = ( & ' q DepNode , & ' q DepNode ) ;
282- fn graph_id ( & self ) -> dot:: Id {
282+ fn graph_id ( & self ) -> dot:: Id < ' _ > {
283283 dot:: Id :: new ( "DependencyGraph" ) . unwrap ( )
284284 }
285- fn node_id ( & self , n : & & ' q DepNode ) -> dot:: Id {
285+ fn node_id ( & self , n : & & ' q DepNode ) -> dot:: Id < ' _ > {
286286 let s: String =
287287 format ! ( "{:?}" , n) . chars ( )
288288 . map ( |c| if c == '_' || c. is_alphanumeric ( ) { c } else { '_' } )
289289 . collect ( ) ;
290290 debug ! ( "n={:?} s={:?}" , n, s) ;
291291 dot:: Id :: new ( s) . unwrap ( )
292292 }
293- fn node_label ( & self , n : & & ' q DepNode ) -> dot:: LabelText {
293+ fn node_label ( & self , n : & & ' q DepNode ) -> dot:: LabelText < ' _ > {
294294 dot:: LabelText :: label ( format ! ( "{:?}" , n) )
295295 }
296296}
0 commit comments