@@ -21,10 +21,10 @@ use rustc_data_structures::indexed_vec::Idx;
21
21
use super :: pretty:: dump_mir_def_ids;
22
22
23
23
/// Write a graphviz DOT graph of a list of MIRs.
24
- pub fn write_mir_graphviz < ' a , ' tcx , W > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
25
- single : Option < DefId > ,
26
- w : & mut W )
27
- -> io:: Result < ( ) >
24
+ pub fn write_mir_graphviz < ' tcx , W > ( tcx : TyCtxt < ' _ , ' _ , ' tcx > ,
25
+ single : Option < DefId > ,
26
+ w : & mut W )
27
+ -> io:: Result < ( ) >
28
28
where W : Write
29
29
{
30
30
for def_id in dump_mir_def_ids ( tcx, single) {
@@ -36,10 +36,10 @@ pub fn write_mir_graphviz<'a, 'tcx, W>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
36
36
}
37
37
38
38
/// Write a graphviz DOT graph of the MIR.
39
- pub fn write_mir_fn_graphviz < ' a , ' tcx , W > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
40
- nodeid : NodeId ,
41
- mir : & Mir ,
42
- w : & mut W ) -> io:: Result < ( ) >
39
+ pub fn write_mir_fn_graphviz < ' tcx , W > ( tcx : TyCtxt < ' _ , ' _ , ' tcx > ,
40
+ nodeid : NodeId ,
41
+ mir : & Mir ,
42
+ w : & mut W ) -> io:: Result < ( ) >
43
43
where W : Write
44
44
{
45
45
writeln ! ( w, "digraph Mir_{} {{" , nodeid) ?;
@@ -137,11 +137,11 @@ fn write_edges<W: Write>(source: BasicBlock, mir: &Mir, w: &mut W) -> io::Result
137
137
/// Write the graphviz DOT label for the overall graph. This is essentially a block of text that
138
138
/// will appear below the graph, showing the type of the `fn` this MIR represents and the types of
139
139
/// all the variables and temporaries.
140
- fn write_graph_label < ' a , ' tcx , W : Write > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
141
- nid : NodeId ,
142
- mir : & Mir ,
143
- w : & mut W )
144
- -> io:: Result < ( ) > {
140
+ fn write_graph_label < ' a , ' gcx , ' tcx , W : Write > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
141
+ nid : NodeId ,
142
+ mir : & Mir ,
143
+ w : & mut W )
144
+ -> io:: Result < ( ) > {
145
145
write ! ( w, " label=<fn {}(" , dot:: escape_html( & tcx. node_path_str( nid) ) ) ?;
146
146
147
147
// fn argument types.
0 commit comments