Skip to content

Commit b04e913

Browse files
committed
---
yaml --- r: 272859 b: refs/heads/beta c: 2529b73 h: refs/heads/master i: 272857: 5efbdb4 272855: 0e6c86a
1 parent cc6a741 commit b04e913

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 43dc48c7ffb45c714b33b1e47f23f6d711c89596
26+
refs/heads/beta: 2529b730874985cc2d8d97032d9790ae6c5bcbae
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_data_structures/graph/mod.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
121121
}
122122
}
123123

124-
///////////////////////////////////////////////////////////////////////////
125-
// Simple accessors
124+
// # Simple accessors
126125

127126
#[inline]
128127
pub fn all_nodes(&self) -> &[Node<N>] {
@@ -144,8 +143,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
144143
self.edges.len()
145144
}
146145

147-
///////////////////////////////////////////////////////////////////////////
148-
// Node construction
146+
// # Node construction
149147

150148
pub fn next_node_index(&self) -> NodeIndex {
151149
NodeIndex(self.nodes.len())
@@ -172,8 +170,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
172170
&self.nodes[idx.0]
173171
}
174172

175-
///////////////////////////////////////////////////////////////////////////
176-
// Edge construction and queries
173+
// # Edge construction and queries
177174

178175
pub fn next_edge_index(&self) -> EdgeIndex {
179176
EdgeIndex(self.edges.len())
@@ -232,8 +229,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
232229
self.edges[edge.0].next_edge[dir.repr]
233230
}
234231

235-
///////////////////////////////////////////////////////////////////////////
236-
// Iterating over nodes, edges
232+
// # Iterating over nodes, edges
237233

238234
pub fn each_node<'a, F>(&'a self, mut f: F) -> bool
239235
where F: FnMut(NodeIndex, &'a Node<N>) -> bool
@@ -274,8 +270,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
274270
self.incoming_edges(target).sources()
275271
}
276272

277-
///////////////////////////////////////////////////////////////////////////
278-
// Fixed-point iteration
273+
// # Fixed-point iteration
279274
//
280275
// A common use for graphs in our compiler is to perform
281276
// fixed-point iteration. In this case, each edge represents a
@@ -306,8 +301,7 @@ impl<N: Debug, E: Debug> Graph<N, E> {
306301
}
307302
}
308303

309-
///////////////////////////////////////////////////////////////////////////
310-
// Iterators
304+
// # Iterators
311305

312306
pub struct AdjacentEdges<'g, N, E>
313307
where N: 'g,

branches/beta/src/librustc_data_structures/unify/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ impl<K: UnifyKey> sv::SnapshotVecDelegate for Delegate<K> {
251251
fn reverse(_: &mut Vec<VarValue<K>>, _: ()) {}
252252
}
253253

254-
///////////////////////////////////////////////////////////////////////////
255-
// Base union-find algorithm, where we are just making sets
254+
// # Base union-find algorithm, where we are just making sets
256255

257256
impl<'tcx, K: UnifyKey> UnificationTable<K>
258257
where K::Value: Combine
@@ -281,7 +280,8 @@ impl<'tcx, K: UnifyKey> UnificationTable<K>
281280
}
282281
}
283282

284-
///////////////////////////////////////////////////////////////////////////
283+
// # Non-subtyping unification
284+
//
285285
// Code to handle keys which carry a value, like ints,
286286
// floats---anything that doesn't have a subtyping relationship we
287287
// need to worry about.

0 commit comments

Comments
 (0)