Skip to content

Commit 6de4786

Browse files
committed
---
yaml --- r: 229038 b: refs/heads/try c: 3f8e029 h: refs/heads/master v: v3
1 parent 0494db0 commit 6de4786

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 5f02de3c226bce60c58ce2bc436e69c55b90a616
4+
refs/heads/try: 3f8e029bedba23b8b2d174fac2718f970a396676
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/doc/tarpl/coercions.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
% Coercions
22

33
Types can implicitly be coerced to change in certain contexts. These changes are
4-
generally just *weakening* of types, largely focused around pointers and lifetimes.
5-
They mostly exist to make Rust "just work" in more cases, and are largely harmless.
4+
generally just *weakening* of types, largely focused around pointers and
5+
lifetimes. They mostly exist to make Rust "just work" in more cases, and are
6+
largely harmless.
67

78
Here's all the kinds of coercion:
89

9-
1010
Coercion is allowed between the following types:
1111

12-
* Subtyping: `T` to `U` if `T` is a [subtype][] of `U`
13-
* Transitivity: `T_1` to `T_3` where `T_1` coerces to `T_2` and `T_2` coerces to `T_3`
12+
* Transitivity: `T_1` to `T_3` where `T_1` coerces to `T_2` and `T_2` coerces to
13+
`T_3`
1414
* Pointer Weakening:
1515
* `&mut T` to `&T`
1616
* `*mut T` to `*const T`
@@ -68,5 +68,3 @@ fn main() {
6868
<anon>:10 foo(t);
6969
^~~
7070
```
71-
72-
[subtype]: subtyping.html

0 commit comments

Comments
 (0)