Skip to content

Commit 6048fd6

Browse files
committed
---
yaml --- r: 179363 b: refs/heads/tmp c: 7610feb h: refs/heads/master i: 179361: 9e8f696 179359: 7954329 v: v3
1 parent 15b57fe commit 6048fd6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 576ba8fe57fff2808b58e5fbd36b246c746e4df6
37+
refs/heads/tmp: 7610feb82a386d1637c60a05d6c64b6c4c459bb6

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

Lines changed: 3 additions & 3 deletions
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)