Skip to content

Commit d9ff49d

Browse files
committed
---
yaml --- r: 38511 b: refs/heads/incoming c: c46706f h: refs/heads/master i: 38509: 762d61d 38507: 1bb9380 38503: 2fcfb0d 38495: 32524a4 v: v3
1 parent 61503b5 commit d9ff49d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: e257f390e12f3eb414152a474259ccd8641627aa
9+
refs/heads/incoming: c46706fffdfc54fcb19fee543e6ad8a4c4b79ca4
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/doc/rust.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,9 @@ task in a _failing state_.
16361636

16371637
### Unary operator expressions
16381638

1639-
Rust defines five unary operators. They are all written as prefix
1640-
operators, before the expression they apply to.
1639+
Rust defines six symbolic unary operators,
1640+
in addition to the unary [copy](#unary-copy-expressions) and [move](#unary-move-expressions) operators.
1641+
They are all written as prefix operators, before the expression they apply to.
16411642

16421643
`-`
16431644
: Negation. May only be applied to numeric types.
@@ -1652,9 +1653,12 @@ operators, before the expression they apply to.
16521653
`false`. On integer types, this inverts the individual bits in the
16531654
two's complement representation of the value.
16541655
`@` and `~`
1655-
: [Boxing](#box-types) operators. Allocate a box to hold the value
1656-
they are applied to, and store the value in it. `@` creates a
1657-
shared, reference-counted box, whereas `~` creates a unique box.
1656+
: [Boxing](#pointer-types) operators. Allocate a box to hold the value they are applied to,
1657+
and store the value in it. `@` creates a managed box, whereas `~` creates an owned box.
1658+
`&`
1659+
: Borrow operator. Returns a borrowed pointer, pointing to its operand.
1660+
The operand of a borrowed pointer is statically proven to outlive the resulting pointer.
1661+
If the borrow-checker cannot prove this, it is a compilation error.
16581662

16591663
### Binary operator expressions
16601664

0 commit comments

Comments
 (0)