Steve Klabnik
02c1351fa3
remove incorrect statement from TRPL: crates and modules
2015-07-27 23:04:42 -04:00
bors
184267cac6
Auto merge of #27274 - tshepang:not-needed-word, r=steveklabnik
...
Also, join the 2 sentences to improve flow
2015-07-27 02:45:35 +00:00
Jared Roesch
55621b6199
Add feature gate
2015-07-25 20:05:42 -07:00
bors
f0b7ede78a
Auto merge of #26960 - Manishearth:wrapper-types, r=steveklabnik
...
@steveklabnik had suggested I do this.
This needs much review -- I tried reducing the informal tone but there's room for improvement.
r? @steveklabnik
2015-07-25 07:54:48 +00:00
Manish Goregaokar
8484aca046
Move wrapper types blog post into trpl
2015-07-25 11:02:41 +05:30
Tshepang Lekhonkhobe
89c302eb6c
reference: "those" feels misplaced there
...
Also, join the 2 sentences to improve flow
2015-07-25 06:56:26 +02:00
Steve Klabnik
43edc1c35a
Rollup merge of #27193 - aidanhs:aphs-advanced-linking-doc, r=steveklabnik
...
Continuation of #25685 .
2015-07-24 14:56:02 -04:00
Steve Klabnik
e490ba9a40
Rollup merge of #27177 - echochamber:master, r=steveklabnik
...
Was browsing somebody else's code and came across a snippet using labels. Looking around, it seems like there was an example for this in [rustbyexample](http://rustbyexample.com/flow_control/loop/nested.html ) but none in trpl.
2015-07-24 14:56:01 -04:00
Jason Schein
c80bff0186
Added how to use labels to break nested loops to trpl.
2015-07-22 13:00:51 -07:00
Aidan Hobson Sayers
b6a0d9e178
Additional notes to link-args
2015-07-22 18:15:23 +01:00
Aidan Hobson Sayers
a8a49fbfc9
musl static linking not glibc
2015-07-22 18:15:16 +01:00
Steve Klabnik
5665efd60e
Rollup merge of #27201 - Ticki:master, r=steveklabnik
...
Just some small changes.
2015-07-22 12:56:52 -04:00
Steve Klabnik
7cacf83009
Rollup merge of #27183 - Dangthrimble:master, r=steveklabnik
...
Updated "Installing Rust" and "After installation" to provide additional guidance to Windows users on including Rust in the Path system variable.
r? @steveklabnik
2015-07-22 12:56:52 -04:00
Jonathan Hansford
f2c73459ac
Path changed to %PATH%
...
The two references to the "Path system variable" have changed to the
"%PATH% system variable".
2015-07-22 08:26:40 +01:00
Aidan Hobson Sayers
7af865b333
Static linking
2015-07-21 21:11:52 +01:00
Ticki
cf1e078bf6
Klabnik nit-picks ;)
2015-07-21 22:09:29 +02:00
Ticki
48870d4f05
rust -> Rust
2015-07-21 21:40:11 +02:00
Ticki
a5c7b96426
Add info about usage of 'unsafe' keyword in bindings to foreign interfaces.
2015-07-21 21:36:29 +02:00
Aidan Hobson Sayers
e5c1884c26
Note possiblities of empty extern blocks (based on #12575 )
2015-07-21 19:07:21 +01:00
Aidan Hobson Sayers
e6c058e18c
Rename 'link-args' to 'advanced-linking', add intro
2015-07-21 19:07:19 +01:00
Jonathan Hansford
99572284dc
Guidance on Windows install re "Add to PATH"
...
Updated "Installing Rust" and "After installation" to provide additional
guidance to Windows users on including Rust in the Path system variable.
2015-07-21 12:31:06 +01:00
Steve Klabnik
a29c8347f2
Add travis config to TRPL: release channels
...
This should help people configure travis to test all three channels.
2015-07-20 20:14:23 -04:00
Steve Klabnik
d0e1b06fc0
Clean up some wording around globs.
...
Globs used to be a feature you'd turn on, but now they're not, so this sounds
a bit odd.
2015-07-17 13:15:06 -04:00
Steve Klabnik
d354d41fd5
Merge branch 'more-ref-fixes' of https://github.com/tshepang/rust into rollup_central
2015-07-16 17:55:07 -04:00
Steve Klabnik
72722e3c2b
Merge branch 'coercions' of https://github.com/tshepang/rust into rollup_central
2015-07-16 17:54:57 -04:00
Steve Klabnik
c451bb81ee
Merge branch 'nopacked' of https://github.com/Stebalien/rust into rollup_central
2015-07-16 17:53:49 -04:00
Manish Goregaokar
a4060d02cb
Rollup merge of #27020 - goyox86:goyox86/fix-error-handling-snippet, r=steveklabnik
...
This PR fixes a snippet of code on the error handling chapter of \"The Rust Programming Language\".
//cc @steveklabnik
The docs state that trying to compile the snippet will yield the following error:
```bash
anon>:13:5: 20:6 error: non-exhaustive patterns: `_` not covered [E0004]
```
But instead the error received is:
```bash
<anon>:22:46: 22:56 error: unresolved name `NewRelease`
<anon>:22 std::io::println(descriptive_probability(NewRelease));
^~~~~~~~~~
<anon>:22:5: 22:21 error: unresolved name `std::io::println`
<anon>:22 std::io::println(descriptive_probability(NewRelease));
^~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
playpen: application terminated with error code 101
```
After applying this PR the expected error is returned:
```bash
anon>:13:5: 20:6 error: non-exhaustive patterns: `_` not covered [E0004]
<anon>:13 match probability(&event) {
<anon>:14 1.00 => \"certain\",
<anon>:15 0.00 => \"impossible\",
<anon>:16 0.00 ... 0.25 => \"very unlikely\",
<anon>:17 0.25 ... 0.50 => \"unlikely\",
<anon>:18 0.50 ... 0.75 => \"likely\",
...
<anon>:13:5: 20:6 help: see the detailed explanation for E0004
error: aborting due to previous error
```
2015-07-16 10:49:08 +05:30
Manish Goregaokar
9ac3f42771
Rollup merge of #26695 - rutsky:patch-2, r=Manishearth
...
r? @steveklabnik
2015-07-16 10:48:36 +05:30
Steven Allen
833e88db52
Don't mention packed attribute in reference.md
2015-07-14 14:04:21 -04:00
bors
5708b1a18a
Auto merge of #27016 - alexcrichton:inline-asm-docs, r=steveklabnik
...
Hot off the press, we've now got some nice documentation to link to in LLVM
officially!
2015-07-14 07:51:04 +00:00
Jose Narvaez
2e1f75acc4
Fixed snippet to return the proper error.
2015-07-13 20:54:33 +01:00
Alex Crichton
07132b499f
doc: Add a link to LLVM's new inline assembly docs
...
Hot off the press, we've now got some nice documentation to link to in LLVM
officially!
2015-07-13 10:08:09 -07:00
Frank McSherry
d673bdef0f
minor grammatical update
...
Grammatical update (and passive -> active, but I'm not sure if "Rust" is often used as a subject in the book; feel free to revert that part for style, but keep the subject-verb agreement)
2015-07-13 17:22:08 +02:00
Pavel Pravosud
49e45833f8
Clean up trailing whitespaces
2015-07-12 11:23:09 -07:00
Pavel Pravosud
6e1d01f79e
Fix multi-threading example in dining-philosophers
2015-07-12 11:22:52 -07:00
Steve Klabnik
6bc1264329
Rollup merge of #26892 - steveklabnik:gh26482, r=alexcrichton
...
We weren't explicit enough about Cargo's default version behavior.
For rust-lang/rust at least,
Fixes #26482
2015-07-08 10:34:27 -04:00
Steve Klabnik
1ae7702681
TRPL: make version constraits explicit
...
We weren't explicit enough about Cargo's default version behavior.
For rust-lang/rust at least,
Fixes #26482
2015-07-08 13:09:22 -04:00
Steve Klabnik
19d8bfff15
Rollup merge of #26687 - christianweinz:patch-1, r=huonw
...
The ‘_‘ wildcard does exactly not handle specific cases but all not specified ones.
2015-07-08 10:34:26 -04:00
Tshepang Lekhonkhobe
4ee7047034
reference: miscellaneous fixes
2015-07-08 00:44:50 +02:00
Steve Klabnik
b6c7dff728
Rollup merge of #26855 - steveklabnik:gh26344, r=alexcrichton
...
Fixes #26344
2015-07-07 09:49:56 -04:00
Steve Klabnik
743a9e6cae
Rollup merge of #26854 - steveklabnik:gh26345, r=alexcrichton
...
I am not mentioning #[unsafe_drop_flag] because it should go away
eventually, and also because it's just an attribute, it's not
really a use of the `unsafe` keyword.
Fixes #26345
2015-07-07 09:49:56 -04:00
Steve Klabnik
10c795a6ea
Rollup merge of #26853 - steveklabnik:gh26346, r=Gankro
...
This incorrectly implied that doing things is fine in unsafe code
Fixes #26346
2015-07-07 09:49:55 -04:00
Steve Klabnik
bc28e64fb3
Re-word UB in unsafe guide
...
This incorrectly implied that doing things is fine in unsafe code
Fixes #26346
2015-07-07 12:52:20 -04:00
Steve Klabnik
4b19be3631
Not literally all of concurrency is a library
...
Fixes #26344
2015-07-07 09:29:04 -04:00
Steve Klabnik
73df19a206
There are four uses of unsafe, actually
...
I am not mentioning #[unsafe_drop_flag] because it should go away
eventually, and also because it's just an attribute, it's not
really a use of the `unsafe` keyword.
Fixes #26345
2015-07-07 09:26:23 -04:00
Steve Klabnik
f29b565e2d
Describe lifetime syntax for impl
...
Fixes #26375
2015-07-07 09:19:26 -04:00
Steve Klabnik
04a85c538a
Rollup merge of #26835 - tshepang:copy-or-not, r=steveklabnik
2015-07-06 18:06:31 -04:00
Steve Klabnik
c4ee2e5c01
Rollup merge of #26834 - tshepang:space, r=brson
2015-07-06 18:06:31 -04:00
Steve Klabnik
015441bd5d
Rollup merge of #26827 - steveklabnik:gh25786, r=alexcrichton
...
Fixes #25786
2015-07-06 18:06:30 -04:00
Steve Klabnik
aef38ef819
Rollup merge of #26761 - steveklabnik:actually_ub, r=alexcrichton
...
I incorrectly stated that it's an abort.
r? @Gankro
2015-07-06 18:06:29 -04:00