Skip to content

Commit

Permalink
remove closure &mut:/&: annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Feb 7, 2015
1 parent 576ba8f commit 7610feb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/middle/infer/region_inference/graphviz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl<'a, 'tcx> ConstraintGraph<'a, 'tcx> {
add_node(n2);
}

tcx.region_maps.each_encl_scope(|&mut: sub, sup| {
tcx.region_maps.each_encl_scope(|sub, sup| {
add_node(Node::Region(ty::ReScope(*sub)));
add_node(Node::Region(ty::ReScope(*sup)));
});
Expand All @@ -176,7 +176,7 @@ impl<'a, 'tcx> dot::Labeller<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
Some(node_id) => node_id,
None => panic!("no node_id found for node: {:?}", n),
};
let name = |&:| format!("node_{}", node_id);
let name = || format!("node_{}", node_id);
match dot::Id::new(name()) {
Ok(id) => id,
Err(_) => {
Expand Down Expand Up @@ -234,7 +234,7 @@ impl<'a, 'tcx> dot::GraphWalk<'a, Node, Edge> for ConstraintGraph<'a, 'tcx> {
fn edges(&self) -> dot::Edges<Edge> {
debug!("constraint graph has {} edges", self.map.len());
let mut v : Vec<_> = self.map.keys().map(|e| Edge::Constraint(*e)).collect();
self.tcx.region_maps.each_encl_scope(|&mut: sub, sup| {
self.tcx.region_maps.each_encl_scope(|sub, sup| {
v.push(Edge::EnclScope(*sub, *sup))
});
debug!("region graph has {} edges", v.len());
Expand Down

0 comments on commit 7610feb

Please sign in to comment.