Skip to content

Commit 05ec633

Browse files
committed
---
yaml --- r: 35839 b: refs/heads/try2 c: a8e1d83 h: refs/heads/master i: 35837: 7c3642d 35835: 3d0c229 35831: 0891c71 35823: 7c5a929 35807: d4e3d01 35775: 832bbb7 35711: 9d5bbaf 35583: 362cf65 35327: 5441bcc 34815: e3ac160 v: v3
1 parent 9f24122 commit 05ec633

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c4237db60e35d00257f602a38530aadbc9143689
8+
refs/heads/try2: a8e1d83103cdaa8391e99c8ecaff0f68b8c0ff9e
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/doc/rust.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ from outside the source file: either by an explicit `source_directive` in
676676
a referencing crate file, or by the filename of the source file itself.
677677

678678
A source file that contains a `main` function can be compiled to an
679-
executable. If a `main` function is present, it must have no [type parameters](#type-parameters)
680-
and no [constraints](#constraints). Its return type must be [`nil`](#primitive-types) and it must take no arguments.
679+
executable. If a `main` function is present,
680+
its return type must be [`nil`](#primitive-types) and it must take no arguments.
681681

682682
# Items and attributes
683683

@@ -2292,8 +2292,7 @@ execute after the `assert`.
22922292
## Types
22932293

22942294
Every slot and value in a Rust program has a type. The _type_ of a *value*
2295-
defines the interpretation of the memory holding it. The type of a *slot* may
2296-
also include [constraints](#constraints).
2295+
defines the interpretation of the memory holding it.
22972296

22982297
Built-in types and type-constructors are tightly integrated into the language,
22992298
in nontrivial ways that are not possible to emulate in user-defined
@@ -2562,8 +2561,8 @@ Raw pointers (`*`)
25622561
### Function types
25632562

25642563
The function type-constructor `fn` forms new function types. A function type
2565-
consists of a sequence of input slots, an optional set of
2566-
[input constraints](#constraints) and an output slot.
2564+
consists of a set of function-type modifiers (`pure`, `unsafe`, `extern`, etc.),
2565+
a sequence of input slots and an output slot.
25672566

25682567
An example of a `fn` type:
25692568

0 commit comments

Comments
 (0)