Skip to content

Commit 683633f

Browse files
committed
---
yaml --- r: 34646 b: refs/heads/master c: a8e1d83 h: refs/heads/master v: v3
1 parent e95b9a1 commit 683633f

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c4237db60e35d00257f602a38530aadbc9143689
2+
refs/heads/master: a8e1d83103cdaa8391e99c8ecaff0f68b8c0ff9e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/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)