about summary refs log tree commit diff
path: root/src/rustbook
AgeCommit message (Collapse)AuthorLines
2015-02-23Rollup merge of #22505 - tshepang:current_dir, r=steveklabnikManish Goregaokar-6/+4
2015-02-23rustbook: update slicing syntax where [] --> [..]Tshepang Lekhonkhobe-13/+13
2015-02-18rollup merge of #22502: nikomatsakis/deprecate-bracket-bracketAlex Crichton-4/+4
Conflicts: src/libcollections/slice.rs src/libcollections/str.rs src/librustc/middle/lang_items.rs src/librustc_back/rpath.rs src/librustc_typeck/check/regionck.rs src/libstd/ffi/os_str.rs src/libsyntax/diagnostic.rs src/libsyntax/parse/parser.rs src/libsyntax/util/interner.rs src/test/run-pass/regions-refcell.rs
2015-02-18Replace all uses of `&foo[]` with `&foo[..]` en masse.Niko Matsakis-4/+4
2015-02-18rustbook: no-longer-used feature gateTshepang Lekhonkhobe-1/+0
2015-02-18unused importsTshepang Lekhonkhobe-2/+0
2015-02-18os.getcwd renamed to env::current_dirTshepang Lekhonkhobe-3/+4
2015-02-18Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.Niko Matsakis-2/+2
2015-02-17rollup merge of #22459: alexcrichton/feature-namesAlex Crichton-2/+2
Conflicts: src/rustbook/main.rs
2015-02-17std: Rename io/path features with old_ prefixAlex Crichton-2/+2
This commit renames the features for the `std::old_io` and `std::old_path` modules to `old_io` and `old_path` to help facilitate migration to the new APIs. This is a breaking change as crates which mention the old feature names now need to be renamed to use the new feature names. [breaking-change]
2015-02-17Rollup merge of #22402 - nagisa:spring-cleanup-2, r=nikomatsakisManish Goregaokar-10/+12
This commit mostly replaces some of the uses of os::args with env::args. This, for obvious reasons is based on top of #22400. Do not r+ before that lands.
2015-02-17Rollup merge of #22373 - bombless:fix-rustbook, r=steveklabnikManish Goregaokar-1/+1
2015-02-16Replace some uses of deprecated os functionsSimonas Kazlauskas-10/+12
This commit mostly replaces some of the uses of os::args with env::args.
2015-02-15Don't panic if there's no command line argumentsbombless-1/+1
2015-02-15Fix rollup (remove slicing_syntax)Manish Goregaokar-1/+1
2015-02-06Auto merge of #21997 - Manishearth:rollup, r=alexcrichtonbors-1/+1
None
2015-02-05Make the book chapters printableKostas Karachalios-41/+47
Tested on: * Safari on OSX * Firefox on OSX
2015-02-04Fix for misspelled comments.Joseph Crail-1/+1
The spelling corrections were made in both documentation comments and regular comments.
2015-02-02`for x in xs.into_iter()` -> `for x in xs`Jorge Aparicio-2/+2
Also `for x in option.into_iter()` -> `if let Some(x) = option`
2015-02-02`for x in xs.iter()` -> `for x in &xs`Jorge Aparicio-1/+1
2015-01-30rollup merge of #21494: jatinn/jsnavAlex Crichton-0/+40
Added javascript code to insert next/prev links in the rust book. Related Issue - https://github.com/rust-lang/rust/issues/20835
2015-01-29Auto merge of #21677 - japaric:no-range, r=alexcrichtonbors-2/+2
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-29s/Show/Debug/gJorge Aparicio-2/+2
2015-01-29Rollup merge of 21651 - ↵Manish Goregaokar-0/+2
nelsonjchen:add--webkit-overflow-scrolling-touch-to-book-css, r=alexcrichton
2015-01-27Merge remote-tracking branch 'rust-lang/master'Brian Anderson-8/+8
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-26Fallout of io => old_ioAlex Crichton-8/+8
2015-01-26Add same "-webkit-overflow-scrolling: touch" to the table of contents in the ↵Nelson Chen-0/+1
book.
2015-01-26Add "-webkit-overflow-scrolling: touch" to book CSS for the page wrapper.Nelson Chen-0/+1
This change permits native momentum scrolling in Safari on iOS in the book.
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-50/+45
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-23regex: Remove in-tree versionAlex Crichton-49/+45
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-23Set unstable feature names appropriatelyBrian Anderson-1/+7
* `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-22add next/prev section links in the book -- using jsjatinn-0/+40
2015-01-21Tie stability attributes to feature gatesBrian Anderson-1/+1
2015-01-17Set allow(unstable) in crates that use unstable featuresBrian Anderson-0/+1
Lets them build with the -dev, -nightly, or snapshot compiler
2015-01-13Make the Rust Book more mobile friendlySeth Faxon-2/+110
2015-01-10rustbook: use a relative @import path to ensure it works offline.Huon Wilson-1/+1
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-09Handle errors properly in rustbook.Huon Wilson-22/+20
Silently ignoring errors is :( so lets not silently ignore them. huon is :) now.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-9/+18
2015-01-08"The Rust Programming Language"Steve Klabnik-0/+811
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.