File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: c46706fffdfc54fcb19fee543e6ad8a4c4b79ca4
8
+ refs/heads/try2: 2c34ffa26f4850c7bb648ebab0952b8a78874f12
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
10
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -1476,11 +1476,15 @@ Expressions are divided into two main categories: _lvalues_ and _rvalues_.
1476
1476
Likewise within each expression, sub-expressions may occur in _ lvalue context_ or _ rvalue context_ .
1477
1477
The evaluation of an expression depends both on its own category and the context it occurs within.
1478
1478
1479
- Path, field and index expressions are lvalues.
1479
+ [ Path] ( #path-expressions ) , [ field] ( #field-expressions ) and [ index] ( #index-expressions ) expressions are lvalues.
1480
1480
All other expressions are rvalues.
1481
1481
1482
- The left operand of an assignment, compound-assignment, or binary move expression is an lvalue context,
1483
- as is the single operand of a borrow, unary copy or move expression, and _ both_ operands of a swap expression.
1482
+ The left operand of an [ assignment] ( #assignment-expressions ) or
1483
+ [ compound-assignment] ( #compound-assignment-expressions ) expression is an lvalue context,
1484
+ as is the single operand of a unary [ borrow] ( #unary-operator-expressions ) ,
1485
+ or [ move] ( #unary-move-expressions ) expression,
1486
+ and _ both_ operands of a [ swap] ( #swap-expressions )
1487
+ or [ binary move] ( #binary-move-expressions ) expression.
1484
1488
All other expression contexts are rvalue contexts.
1485
1489
1486
1490
When an lvalue is evaluated in an _ lvalue context_ , it denotes a memory location;
You can’t perform that action at this time.
0 commit comments