Luke Jones
edd5f3328b
Refinement of paragraph referenced by [this
...
issue](https://github.com/rust-lang/rust/issues/31927 )
2016-02-27 14:41:38 +13:00
Manish Goregaokar
903798dce0
Rollup merge of #31883 - birkenfeld:doc-null-escape, r=bluss
...
It appears in the examples, but is not covered by any of the cases
in the prose description.
2016-02-26 17:03:40 +05:30
Manish Goregaokar
4cfa2ee2f1
Rollup merge of #31827 - teoryn:patch-1, r=brson
2016-02-25 15:06:06 +05:30
Georg Brandl
d472b69da1
Document the null-char/null-byte escape in the reference
...
It appears in the examples, but is not covered by any of the cases
in the prose description.
2016-02-25 08:30:42 +01:00
Manish Goregaokar
b660ca59ff
Rollup merge of #31870 - ivan:filter-explain, r=steveklabnik
...
As a Rust newbie, I found the book's explanation for why the `filter` closure gets a reference very confusing, and tried to figure out why `filter` is somehow less consumptive than `map` -- but it isn't; that's controlled by `iter`/`into_iter`. I flailed around for a while until @habnabit explained it to me, and in retrospect it is quite obvious :-)
2016-02-25 04:21:11 +05:30
Manish Goregaokar
a834cd1b70
Rollup merge of #31868 - fhahn:capitalize-Rust, r=steveklabnik
2016-02-25 04:21:11 +05:30
Manish Goregaokar
f28677506c
Rollup merge of #31863 - matklad:clarify-reference, r=steveklabnik
...
Reference implied that use declarations may appear *only* at the top of blocks and modules, but it is not the case, and the following is valid:
```Rust
fn foo() {
let x = 92;
use baz::bar;
}
```
r? @steveklabnik
2016-02-25 04:21:11 +05:30
Manish Goregaokar
e928297a3b
Rollup merge of #31677 - ivan:doc-vtable, r=steveklabnik
...
I sure hope this fix is right
cc @steveklabnik
2016-02-25 04:21:10 +05:30
Ivan Kozik
7042c8ef8d
book: Explain better why the filter closure gets a reference
2016-02-24 20:09:01 +00:00
Florian Hahn
145190bd2a
Capitalize some occurences of Rust in documentation
2016-02-24 19:56:28 +01:00
Aleksey Kladov
397ab315e7
reference: clarify use declaration location
2016-02-24 19:13:31 +03:00
Kevin Stock
b49ce1a599
Fix warn(unused_mut) in example
2016-02-22 22:37:02 -05:00
Chad Shaffer
6e985934bd
Fix number of lines and methods in guessing game
2016-02-20 17:00:54 -08:00
Ivan Kozik
58f0d72d90
reference: vtable entries: copy @nikomatsakis's wording
2016-02-18 19:17:09 +00:00
Steve Klabnik
9f0e39ba16
Rollup merge of #31565 - SDX2000:docfixes4, r=steveklabnik
...
See title and diff for more information.
2016-02-17 18:14:35 -05:00
Sandeep Datta
1536195ce6
Made v2 mutable so that we can actually truncate it.
2016-02-17 20:47:24 +05:30
Dirk Gadsden
f2bea1cb70
Clarify contiguous memory array structure of vectors in documentation
...
Closes #31554 .
Contributes to #29380 .
2016-02-16 04:10:30 +05:30
Ivan Kozik
347a257a47
reference: vtable entries are resolved at runtime
2016-02-15 15:53:55 +00:00
Steve Klabnik
fb09a441c6
Rollup merge of #31658 - felgru:master, r=steveklabnik
...
In the Rust code above this block of compiler output, the function is called print_sum, so use the same function name in the error message.
2016-02-14 18:02:32 -05:00
Felix Gruber
3eebec697c
doc: fix compiler output
...
In the Rust code above, the function is called print_sum, so use the
same function name in the error message.
2016-02-14 20:50:12 +01:00
fbergr
310ab5ea74
doc: Remove trailing whitespace
2016-02-14 14:31:20 +02:00
Manish Goregaokar
b34e625faf
Rollup merge of #31638 - rkruppe:rm-tex, r=alexcrichton
...
This file is unused since #27789
2016-02-14 05:06:36 +05:30
Manish Goregaokar
34d95f498c
Rollup merge of #31612 - raindev:grammar, r=steveklabnik
...
I feel sorry for bothering you with such a literally one character changes. If it is counter productive feel free to point it out in the comments, that would be totally understandable. I could try to pack such a changes together in one PR to make them less distractive.
r? @steveklabnik
2016-02-14 05:06:35 +05:30
Manish Goregaokar
8873732585
Rollup merge of #31610 - Manishearth:doc-clarify-txrx, r=steveklabnik
...
Not everyone knows this convention. We could just rename the variables in the
example, but since this notation is commonly used it's a good opportunity to
introduce it.
r? @steveklabnik
2016-02-14 05:06:35 +05:30
Manish Goregaokar
1598995766
Rollup merge of #31563 - SDX2000:docfixes1, r=steveklabnik
...
This is a minor change. Please see title. IMO this is important since this is the first instance when we talk about allocating a vector. Not saying that it is allocated on the stack here leaves room for speculation and this might put off some people (they might not even read the later sections which go into more detail about this).
2016-02-14 05:06:33 +05:30
Robin Kruppe
3e34519141
Remove the last remaining .tex file
2016-02-13 20:27:57 +01:00
Sandeep Datta
37a952a672
Fixed build error as per steveklabnik's suggestion and expanded on the ills of doing out of bounds accesses.
2016-02-13 18:40:24 +05:30
Andrew Barchuk
eb0f9f81f0
Remove unnecessary article
2016-02-12 21:40:02 +02:00
Manish Goregaokar
9ec112749b
Clarify what tx/rx mean in concurrency docs
2016-02-13 00:57:52 +05:30
Sandeep Datta
a6fedc85bf
Minor change.
2016-02-11 19:55:45 +05:30
Sandeep Datta
a8fd1bbd2f
Minor change.
2016-02-11 19:44:33 +05:30
Sandeep Datta
50d179e062
Explained the data race with an example.
2016-02-11 19:40:19 +05:30
Sandeep Datta
62b3b40ade
Clarified move semantics in "the details" section.
2016-02-11 12:30:53 +05:30
Sandeep Datta
8f61a4b34c
Added a few words to indicate where the vector object is created.
2016-02-11 11:16:47 +05:30
Oliver Middleton
cff81d724f
Fix documentation example in the book
...
The code sections shouldn't be inside a ```text block.
2016-02-10 17:19:27 +00:00
Steve Klabnik
6571ae28a8
Rollup merge of #31514 - cgar:spelling, r=alexcrichton
2016-02-09 16:58:59 -05:00
Carlos E. Garcia
02aa0aff2f
Minor spelling fixes
2016-02-09 11:52:39 -05:00
Andrew Barchuk
422cf2d34a
Clean up Error Handling case study examples
...
Remove unnecessary cloning and conversions. Expand tabs left in examples.
2016-02-07 23:08:46 +02:00
bors
5147c1f2c0
Auto merge of #31307 - nagisa:mir-drop-terminator, r=nikomatsakis
...
The scope of these refactorings is a little bit bigger than the title implies. See each commit for details.
I’m submitting this for nitpicking now (the first 4 commits), because I feel the basic idea/implementation is sound and should work. I will eventually expand this PR to cover the translator changes necessary for all this to work (+ tests), ~~and perhaps implement a dynamic dropping scheme while I’m at it as well.~~
r? @nikomatsakis
2016-02-06 01:24:22 +00:00
Steve Klabnik
09e62bac0f
Rollup merge of #31413 - tshepang:improve, r=steveklabnik
2016-02-04 16:39:06 -05:00
Steve Klabnik
fc6e7698c1
Rollup merge of #31412 - tshepang:add-trailing-commas, r=steveklabnik
2016-02-04 16:39:05 -05:00
Steve Klabnik
cd418ba09b
Rollup merge of #31411 - tshepang:idiom, r=steveklabnik
2016-02-04 16:39:05 -05:00
Tshepang Lekhonkhobe
a2f22a00ec
reference: add trailing commas
2016-02-04 22:44:32 +02:00
Tshepang Lekhonkhobe
69b1d75b76
reference: make the line a little more readable
2016-02-04 22:39:15 +02:00
Tshepang Lekhonkhobe
85b19d8aa3
reference: explicit return at function end is not idiomatic
2016-02-04 22:32:53 +02:00
Simonas Kazlauskas
432460a6fc
Synthesize calls to box_free language item
...
This gets rid of Drop(Free, _) MIR construct by synthesizing a call to language item which
takes care of dropping instead.
2016-02-04 15:56:01 +02:00
Matt Brubeck
7b3ea40500
Remove redundant semicolon from "block_expr" in grammar reference
...
"stmt" already includes the terminating semicolon.
2016-02-03 13:43:52 -08:00
bors
a9922419cf
Auto merge of #31370 - Manishearth:rollup, r=Manishearth
...
- Successful merges: #27499 , #31220 , #31329 , #31332 , #31347 , #31351 , #31352 , #31366
- Failed merges:
2016-02-03 00:58:37 +00:00
Manish Goregaokar
1a21dabf27
Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnik
...
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-03 02:54:25 +05:30
Manish Goregaokar
86650211a9
Rollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakis
...
Fixes #31154
2016-02-03 02:54:25 +05:30