Skip to content

Commit

Permalink
Handle borrows of unions in NLL
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang authored Oct 5, 2017
1 parent bc430eb commit f57f001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/2094-nll.md
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,8 @@ follows:

- any loans whose region does not include P are killed;
- if this is a borrow statement, the corresponding loan is generated;
- if the borrow contains a union field, loans are generated for all
prefixes of the union field;
- if this is an assignment `lv = <rvalue>`, then any loan for some path P
of which `lv` is a prefix is killed.

Expand Down

0 comments on commit f57f001

Please sign in to comment.