Manish Goregaokar
fd3b6ca508
Fix doctest (fixup #25900)
2015-06-04 11:26:31 +05:30
Manish Goregaokar
8c2806caae
Rollup merge of #25900 - lorenzb:more_about_types, r=nikomatsakis
...
My main sources of information are [RFC401](https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md ), the rust IRC channel, and a bunch of experiments to figure out what `rustc` currently supports.
Note that the RFC calls for some coercion behaviour that is not implemented yet (see #18469 ).
The documentation in this PR mostly covers current behaviour of rust and doesn't document the future behaviour. I haven't written about receiver expression coercion.
I would be happy to rewrite/adapt the PR according to feedback.
r? @steveklabnik
2015-06-04 10:07:02 +05:30
Steve Klabnik
5235065d74
Remove #[static_assert]
...
This was always a weird feature, and isn't being used in the compiler.
Static assertions should be done better than this.
This implements RFC #1096 .
Fixes #13951
Fixes #23008
Fixes #6676
This is behind a feature gate, but that's still a
[breaking-change]
2015-06-03 09:38:13 -04:00
Steve Klabnik
e1a33aa987
Link to cell in TRPL: mutability
2015-06-02 09:37:54 -04:00
Manish Goregaokar
98612dad9b
Rollup merge of #25941 - puzza007:trpl-infinite-iterator-chain-take, r=steveklabnik
2015-06-02 11:14:08 +05:30
Manish Goregaokar
04abc05094
Rollup merge of #25932 - bluss:doc-book-1, r=alexcrichton
...
trpl: Fix typo in Raw Pointers chapter
2015-06-02 11:14:08 +05:30
Manish Goregaokar
7da2228861
Rollup merge of #25751 - steveklabnik:translations, r=brson
...
/cc @kgv, @rust-kr, @KaiserY, @mkpankov
2015-06-02 11:14:07 +05:30
Steve Klabnik
321c2f4f8c
Add community translations.
2015-06-01 15:57:44 -04:00
Paul Oliver
5fefae684a
trpl: Use infinite iterator in chain example with take
2015-06-01 12:44:50 +02:00
bors
baf508ba20
Auto merge of #25924 - FuGangqiang:master, r=Gankro
2015-06-01 04:57:00 +00:00
bors
02e4c4b8c8
Auto merge of #25911 - olombard:borrowing-link, r=alexcrichton
...
r? @steveklabnik
2015-05-31 21:40:47 +00:00
Ulrik Sverdrup
6cb061721c
trpl: Fix typo in Raw Pointers chapter
2015-05-31 22:35:59 +02:00
Steve Gury
bef936111d
Update iterators.md
...
Fix the actual off by one
2015-05-31 10:24:30 -07:00
Steve Gury
4425422bdd
Fix off by one in the iterator documentation
...
`(1..100).map(|x| x + 1)` is actually mapping [1,100) to [2,101)
2015-05-31 07:32:21 -07:00
FuGangqiang
bdef7faaba
trpl:add missing comma
2015-05-31 18:16:58 +08:00
olombard
61207046de
TRPL: Fix a broken link to 'borrowing'
2015-05-30 23:43:23 +02:00
bors
78c4d53871
Auto merge of #25882 - steveklabnik:gh25554, r=alexcrichton
...
Fixes #25554
2015-05-30 21:10:07 +00:00
Lorenz
babb2684d8
Extend rust reference with a section about type coercions
2015-05-30 14:26:50 +02:00
Lorenz
a2b61e16b1
Extend rust reference with a section about subtyping
2015-05-30 14:25:58 +02:00
Steve Klabnik
ed19a6e034
Rollup merge of #25886 - nhowell:patch-1, r=steveklabnik
...
r? @steveklabnik
2015-05-29 15:24:47 -04:00
Steve Klabnik
253fb5bd8b
Rollup merge of #25883 - steveklabnik:gh25417, r=alexcrichton
...
Fixes #25417
2015-05-29 15:24:47 -04:00
Steve Klabnik
c2a5d31f30
Rollup merge of #25866 - jooert:update_guidelines, r=steveklabnik
...
So that rust-guidelines can be deleted and src/doc/style can prosper as the official home of the rust guidelines. 😃
2015-05-29 15:24:47 -04:00
Steve Klabnik
c7b1f37c59
Rollup merge of #25865 - azerupi:patch-2, r=alexcrichton
...
"workd" corrected to "world"
2015-05-29 15:24:46 -04:00
Steve Klabnik
5d2af1c724
Rollup merge of #25864 - azerupi:patch-1, r=alexcrichton
...
There was no opening parenthesis for this closing parenthesis...
2015-05-29 15:24:46 -04:00
Steve Klabnik
e9e2a11a6a
Rollup merge of #25788 - maxjacobson:add-missing-space-to-glossary, r=steveklabnik
...
r? @steveklabnik
2015-05-29 15:24:46 -04:00
Nick Howell
81a413bb01
trpl: eight sections, not seven
2015-05-29 14:29:35 -04:00
Steve Klabnik
5e941877fe
Add syntax for multiple lifetimes
...
Fixes #25417
2015-05-29 12:52:02 -04:00
Steve Klabnik
b218470b4d
Make note about $ more prominent.
...
Fixes #25554
2015-05-29 12:20:32 -04:00
bors
2d447e40e2
Auto merge of #25857 - killercup:patch-14, r=steveklabnik
...
Thanks to @cers who reported this in killercup/trpl-ebook#14 !
r? @steveklabnik
2015-05-29 14:53:59 +00:00
bors
3a433b968b
Auto merge of #25854 - liigo:patch-1, r=alexcrichton
2015-05-29 11:46:08 +00:00
Nils Liberg
adac861db2
Fix link to newtypes page
2015-05-29 01:02:24 +02:00
Nils Liberg
d0744ba3e7
Fix mistake: "to to" -> "to"
2015-05-29 01:02:24 +02:00
David Campbell
31a007af19
remove extra space from "over" code as well
2015-05-29 01:02:24 +02:00
David Campbell
4d90b4d9b8
Update let.md -- follow whitespace style guideline
...
"Idiomatic code should not use extra whitespace in the middle of a line to provide alignment."
2015-05-29 01:02:24 +02:00
Corey Farwell
06706510cb
Make adjancent code examples more similar
2015-05-29 01:02:24 +02:00
David Campbell
19cb2a7707
add newline before list in functions-and-methods
...
The current version of hoedown treats lists interrupting paragraphs in the Markdown.pl style rather than CommonMark, so a newline is needed for the list to be rendered properly.
2015-05-29 01:02:24 +02:00
Mathieu David
15aeea5477
Corrected typo
...
"workd" corrected to "world"
2015-05-29 00:43:39 +02:00
Mathieu David
15ab481322
removed lonely closing parenthesis
...
There was no opening parenthesis for this closing parenthesis...
2015-05-28 23:47:27 +02:00
bors
621a10e7f3
Auto merge of #25829 - steveklabnik:ioresult_fixes, r=alexcrichton
...
This is now std::io::Result
2015-05-28 17:34:30 +00:00
Steve Klabnik
16a47c2d91
remove references to IoResult
...
This is now std::io::Result
2015-05-28 12:51:01 -04:00
bors
9c303944a7
Auto merge of #25835 - steveklabnik:gh25438, r=alexcrichton
...
Fixes #25438
2015-05-28 15:29:15 +00:00
Pascal Hertleif
2a63cc7715
TRPL: Fix Unescaped URL
2015-05-28 16:18:26 +02:00
bors
4233cbda8a
Auto merge of #25849 - reinh:patch-1, r=huonw
...
Thanks for the awesome book!
r? @steveklabnik
2015-05-28 11:24:38 +00:00
Liigo Zhuang
d061a0f8d5
floating-point types are machine types, not machine-dependent types
2015-05-28 18:11:32 +08:00
bors
4f66d881a5
Auto merge of #25843 - shepmaster:remove-public-int-and-uint, r=huonw
2015-05-28 09:20:49 +00:00
Rein Henrichs
23ec00751e
TRPL: fix typo, borow for borrow
2015-05-27 22:35:46 -07:00
Jake Goulding
a959cc435f
Remove mentions of int / uint from public documentation
2015-05-27 19:26:18 -04:00
Steve Klabnik
4db7e56b01
Small wording fix in TRPL: lifetimes
...
Fixes #25438
2015-05-27 15:02:42 -04:00
bors
e4c64a1499
Auto merge of #25713 - Stebalien:pattern, r=alexcrichton
...
Needed to support:
```rust
match X {
pattern if Y ...
}
for pattern in Y {}
```
IMO, this shouldn't require an RFC because it can't interfere with any future language changes (because `pattern if` and `pattern in` are already legal in rust) and can't cause any ambiguity.
2015-05-27 00:42:55 +00:00
Max Jacobson
16334e508e
Add a missing space to the Glossary page of TRPL
...
r? @steveklabnik
2015-05-25 22:40:07 -04:00