Skip to content

Commit

Permalink
Cleanup liveness comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jul 6, 2019
1 parent b9e7e31 commit b32beb8
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/librustc/middle/liveness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,22 +1346,15 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
succ: LiveNode
) -> LiveNode {
/*
FIXME: clean up this description.
We model control flow like this:
(cond) <--+
| |
v |
+-- (expr) |
| | |
| v |
| (body) ---+
|
|
v
(succ)
(expr) <-+
| |
v |
(body) --+
Note that a `continue` expression targeting the `loop` will have a successor of `expr`.
Meanwhile, a `break` expression will have a successor of `succ`.
*/

// first iteration:
Expand Down

0 comments on commit b32beb8

Please sign in to comment.