bors
d3732a12e8
Auto merge of #21997 - Manishearth:rollup, r=alexcrichton
...
None
2015-02-06 23:30:17 +00:00
Kostas Karachalios
adfe4d4040
Make the book chapters printable
...
Tested on:
* Safari on OSX
* Firefox on OSX
2015-02-05 10:21:06 +01:00
Joseph Crail
dc2e444e50
Fix for misspelled comments.
...
The spelling corrections were made in both documentation comments and
regular comments.
2015-02-04 23:00:02 -05:00
Jorge Aparicio
fd702702ee
for x in xs.into_iter()
-> for x in xs
...
Also `for x in option.into_iter()` -> `if let Some(x) = option`
2015-02-02 13:40:18 -05:00
Jorge Aparicio
d5d7e6565a
for x in xs.iter()
-> for x in &xs
2015-02-02 13:40:18 -05:00
Alex Crichton
9ff540ba37
rollup merge of #21494 : jatinn/jsnav
...
Added javascript code to insert next/prev links in the rust book.
Related Issue - https://github.com/rust-lang/rust/issues/20835
2015-01-30 12:02:48 -08:00
bors
265a23320d
Auto merge of #21677 - japaric:no-range, r=alexcrichton
...
Note: Do not merge until we get a newer snapshot that includes #21374
There was some type inference fallout (see 4th commit) because type inference with `a..b` is not as good as with `range(a, b)` (see #21672 ).
r? @alexcrichton
2015-01-29 16:28:52 +00:00
Jorge Aparicio
788181d405
s/Show/Debug/g
2015-01-29 07:49:02 -05:00
Manish Goregaokar
d37d2167b2
Rollup merge of 21651 - nelsonjchen:add--webkit-overflow-scrolling-touch-to-book-css, r=alexcrichton
2015-01-29 03:16:52 +05:30
Brian Anderson
7122305053
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
src/libcore/cell.rs
src/librustc_driver/test.rs
src/libstd/old_io/net/tcp.rs
src/libstd/old_io/process.rs
2015-01-27 15:05:04 -08:00
Alex Crichton
3a07f859b8
Fallout of io => old_io
2015-01-26 16:01:16 -08:00
Nelson Chen
e0dc9bd275
Add same "-webkit-overflow-scrolling: touch" to the table of contents in the book.
2015-01-26 02:37:17 -08:00
Nelson Chen
f7f80ce61a
Add "-webkit-overflow-scrolling: touch" to book CSS for the page wrapper.
...
This change permits native momentum scrolling in Safari on iOS in the book.
2015-01-26 02:37:01 -08:00
Brian Anderson
63fcbcf3ce
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
mk/tests.mk
src/liballoc/arc.rs
src/liballoc/boxed.rs
src/liballoc/rc.rs
src/libcollections/bit.rs
src/libcollections/btree/map.rs
src/libcollections/btree/set.rs
src/libcollections/dlist.rs
src/libcollections/ring_buf.rs
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcollections/string.rs
src/libcollections/vec.rs
src/libcollections/vec_map.rs
src/libcore/any.rs
src/libcore/array.rs
src/libcore/borrow.rs
src/libcore/error.rs
src/libcore/fmt/mod.rs
src/libcore/iter.rs
src/libcore/marker.rs
src/libcore/ops.rs
src/libcore/result.rs
src/libcore/slice.rs
src/libcore/str/mod.rs
src/libregex/lib.rs
src/libregex/re.rs
src/librustc/lint/builtin.rs
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs
src/libstd/sync/mpsc/mod.rs
src/libstd/sync/mutex.rs
src/libstd/sync/poison.rs
src/libstd/sync/rwlock.rs
src/libsyntax/feature_gate.rs
src/libsyntax/test.rs
2015-01-25 01:20:55 -08:00
Alex Crichton
6c29708bf9
regex: Remove in-tree version
...
The regex library was largely used for non-critical aspects of the compiler and
various external tooling. The library at this point is duplicated with its
out-of-tree counterpart and as such imposes a bit of a maintenance overhead as
well as compile time hit for the compiler itself.
The last major user of the regex library is the libtest library, using regexes
for filters when running tests. This removal means that the filtering has gone
back to substring matching rather than using regexes.
2015-01-23 21:04:10 -08:00
Brian Anderson
cd6d9eab5d
Set unstable feature names appropriately
...
* `core` - for the core crate
* `hash` - hashing
* `io` - io
* `path` - path
* `alloc` - alloc crate
* `rand` - rand crate
* `collections` - collections crate
* `std_misc` - other parts of std
* `test` - test crate
* `rustc_private` - everything else
2015-01-23 13:28:40 -08:00
jatinn
e371d23486
add next/prev section links in the book -- using js
2015-01-22 23:11:14 -05:00
Brian Anderson
7b73ec4698
Tie stability attributes to feature gates
2015-01-21 16:16:21 -08:00
Brian Anderson
6f3a80e411
Set allow(unstable) in crates that use unstable features
...
Lets them build with the -dev, -nightly, or snapshot compiler
2015-01-17 16:38:04 -08:00
Seth Faxon
9af8a646a9
Make the Rust Book more mobile friendly
2015-01-13 09:41:26 -08:00
Huon Wilson
afe260ff4b
rustbook: use a relative @import path to ensure it works offline.
...
The URL previously caused the book to require an internet connection to
get the full styling, this should mean no internet is required.
2015-01-10 00:54:18 +11:00
Huon Wilson
80fb5ca874
Handle errors properly in rustbook.
...
Silently ignoring errors is :( so lets not silently ignore them. huon is
:) now.
2015-01-09 20:25:45 +11:00
Alex Crichton
7541f82fab
Fix dead links in the guide and reorganize
2015-01-08 10:27:03 -08:00
Steve Klabnik
16a6ebd1f6
"The Rust Programming Language"
...
This pulls all of our long-form documentation into a single document,
nicknamed "the book" and formally titled "The Rust Programming
Language."
A few things motivated this change:
* People knew of The Guide, but not the individual Guides. This merges
them together, helping discoverability.
* You can get all of Rust's longform documentation in one place, which
is nice.
* We now have rustbook in-tree, which can generate this kind of
documentation. While its style is basic, the general idea is much
better: a table of contents on the left-hand side.
* Rather than a almost 10,000-line guide.md, there are now smaller files
per section.
2015-01-08 12:02:11 -05:00