@@ -154,7 +154,7 @@ impl<'a, 'tcx> ConstraintGraph<'a, 'tcx> {
154
154
add_node ( n2) ;
155
155
}
156
156
157
- tcx. region_maps . each_encl_scope ( |& mut : sub, sup| {
157
+ tcx. region_maps . each_encl_scope ( |sub, sup| {
158
158
add_node ( Node :: Region ( ty:: ReScope ( * sub) ) ) ;
159
159
add_node ( Node :: Region ( ty:: ReScope ( * sup) ) ) ;
160
160
} ) ;
@@ -176,7 +176,7 @@ impl<'a, 'tcx> dot::Labeller<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
176
176
Some ( node_id) => node_id,
177
177
None => panic ! ( "no node_id found for node: {:?}" , n) ,
178
178
} ;
179
- let name = |& : | format ! ( "node_{}" , node_id) ;
179
+ let name = || format ! ( "node_{}" , node_id) ;
180
180
match dot:: Id :: new ( name ( ) ) {
181
181
Ok ( id) => id,
182
182
Err ( _) => {
@@ -234,7 +234,7 @@ impl<'a, 'tcx> dot::GraphWalk<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
234
234
fn edges ( & self ) -> dot:: Edges < Edge > {
235
235
debug ! ( "constraint graph has {} edges" , self . map. len( ) ) ;
236
236
let mut v : Vec < _ > = self . map . keys ( ) . map ( |e| Edge :: Constraint ( * e) ) . collect ( ) ;
237
- self . tcx . region_maps . each_encl_scope ( |& mut : sub, sup| {
237
+ self . tcx . region_maps . each_encl_scope ( |sub, sup| {
238
238
v. push ( Edge :: EnclScope ( * sub, * sup) )
239
239
} ) ;
240
240
debug ! ( "region graph has {} edges" , v. len( ) ) ;
0 commit comments