Skip to content

Commit 6aeea50

Browse files
committed
Cleanup liveness comment.
1 parent d45acdf commit 6aeea50

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/librustc/middle/liveness.rs

+6-13
Original file line numberDiff line numberDiff line change
@@ -1346,22 +1346,15 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
13461346
succ: LiveNode
13471347
) -> LiveNode {
13481348
/*
1349-
FIXME: clean up this description.
1350-
13511349
We model control flow like this:
13521350
1353-
(cond) <--+
1354-
| |
1355-
v |
1356-
+-- (expr) |
1357-
| | |
1358-
| v |
1359-
| (body) ---+
1360-
|
1361-
|
1362-
v
1363-
(succ)
1351+
(expr) <-+
1352+
| |
1353+
v |
1354+
(body) --+
13641355
1356+
Note that a `continue` expression targeting the `loop` will have a successor of `expr`.
1357+
Meanwhile, a `break` expression will have a successor of `succ`.
13651358
*/
13661359

13671360
// first iteration:

0 commit comments

Comments
 (0)