Skip to content

Commit 7610feb

Browse files
committed
remove closure &mut:/&: annotations.
1 parent 576ba8f commit 7610feb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/middle/infer/region_inference/graphviz.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<'a, 'tcx> ConstraintGraph<'a, 'tcx> {
154154
add_node(n2);
155155
}
156156

157-
tcx.region_maps.each_encl_scope(|&mut: sub, sup| {
157+
tcx.region_maps.each_encl_scope(|sub, sup| {
158158
add_node(Node::Region(ty::ReScope(*sub)));
159159
add_node(Node::Region(ty::ReScope(*sup)));
160160
});
@@ -176,7 +176,7 @@ impl<'a, 'tcx> dot::Labeller<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
176176
Some(node_id) => node_id,
177177
None => panic!("no node_id found for node: {:?}", n),
178178
};
179-
let name = |&:| format!("node_{}", node_id);
179+
let name = || format!("node_{}", node_id);
180180
match dot::Id::new(name()) {
181181
Ok(id) => id,
182182
Err(_) => {
@@ -234,7 +234,7 @@ impl<'a, 'tcx> dot::GraphWalk<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
234234
fn edges(&self) -> dot::Edges<Edge> {
235235
debug!("constraint graph has {} edges", self.map.len());
236236
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| {
238238
v.push(Edge::EnclScope(*sub, *sup))
239239
});
240240
debug!("region graph has {} edges", v.len());

0 commit comments

Comments
 (0)