summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2015-04-02Auto merge of #23822 - tanadeau:remove-box-syntax-in-pointers-doc, ↵bors-84/+103
r=steveklabnik This is the first use of `box`. It's an unstable feature and also isn't consistent with the use of `Box` in the "original" code above it. r? @steveklabnik
2015-04-01Moved use of `box_syntax` unstable feature in docs to Unstable section.Trent Nadeau-84/+103
Create a new section under the Unstable section for `box` syntax and patterns and removed their discussion from the Pointers section.
2015-04-01rollup merge of #23860: nikomatsakis/copy-requires-cloneAlex Crichton-1/+5
Conflicts: src/test/compile-fail/coherence-impls-copy.rs
2015-04-01rollup merge of #23933: kgv/kgv_fixAlex Crichton-6/+7
Fix example and some text for: `read_line` takes `&mut String` and return `Result` instead `IoResult`. r? @steveklabnik
2015-04-01Re-write closures chapterSteve Klabnik-137/+401
2015-04-01Fallout in public-facing and semi-public-facing libsNiko Matsakis-1/+5
2015-04-01Fix rust book error-handling.md for new std::io.kgv-6/+7
Fix example and some text for: `read_line` takes `&mut String` and return `Result` instead `IoResult`.
2015-03-31rollup merge of #23923: steveklabnik/gh23688Alex Crichton-0/+23
Fixes #23688 r? @alexcrichton
2015-03-31Add description of + for multiple trait boundsSteve Klabnik-0/+23
Fixes #23688
2015-03-31rollup merge of #23920: steveklabnik/gh23881Alex Crichton-146/+153
Fixes #23881
2015-03-31Move benchmark tests to unstable sectionSteve Klabnik-146/+153
Fixes #23881
2015-03-31rollup merge of #23288: alexcrichton/issue-19470Alex Crichton-3/+3
This is a deprecated attribute that is slated for removal, and it also affects all implementors of the trait. This commit removes the attribute and fixes up implementors accordingly. The primary implementation which was lost was the ability to compare `&[T]` and `Vec<T>` (in that order). This change also modifies the `assert_eq!` macro to not consider both directions of equality, only the one given in the left/right forms to the macro. This modification is motivated due to the fact that `&[T] == Vec<T>` no longer compiles, causing hundreds of errors in unit tests in the standard library (and likely throughout the community as well). Closes #19470 [breaking-change]
2015-03-31rollup merge of #23906: steveklabnik/spellinAlex Crichton-1/+1
2015-03-31rollup merge of #23902: freebroccolo/masterAlex Crichton-7/+9
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-10/+7
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-31Fix spellingSteve Klabnik-1/+1
2015-03-31std: Remove #[old_orphan_check] from PartialEqAlex Crichton-3/+3
This is a deprecated attribute that is slated for removal, and it also affects all implementors of the trait. This commit removes the attribute and fixes up implementors accordingly. The primary implementation which was lost was the ability to compare `&[T]` and `Vec<T>` (in that order). This change also modifies the `assert_eq!` macro to not consider both directions of equality, only the one given in the left/right forms to the macro. This modification is motivated due to the fact that `&[T] == Vec<T>` no longer compiles, causing hundreds of errors in unit tests in the standard library (and likely throughout the community as well). cc #19470 [breaking-change]
2015-03-31book: reword timer bitDarin Morrison-7/+9
2015-03-31Rollup merge of #23869 - tshepang:more-complete-builder-pattern-example, ↵Manish Goregaokar-8/+16
r=alexcrichton This makes some use of `x` and `y`, instead of setting them to the same value.
2015-03-31Rollup merge of #23839 - tyrion:patch-1, r=alexcrichtonManish Goregaokar-3/+3
The documentation says that 'The current convention is to use the `test` module to hold your "unit-style"' but then defines the module as "tests" instead. Also in the output of the command we can see: ``` test test::it_works ... ok ``` So I think the name of the module was meant to be "test"
2015-03-31Rollup merge of #23813 - steveklabnik:gh19733, r=cmrManish Goregaokar-1/+6
Fixes #19733
2015-03-31Rollup merge of #23558 - steveklabnik:explain_elision, r=gankroManish Goregaokar-4/+9
2015-03-31book: make Builder Pattern example more completeTshepang Lekhonkhobe-8/+16
2015-03-30Explain why 'elision'Steve Klabnik-4/+9
2015-03-30Auto merge of #23861 - Manishearth:rollup, r=Manishearthbors-3/+3
- Successful merges: #23746, #23836, #23852 - Failed merges: #23855
2015-03-30Make note of noalias in unsafe reference sectionSteve Klabnik-1/+6
Fixes #19733
2015-03-30book: improve a bit of grammar in Method Syntax chapeterTshepang Lekhonkhobe-3/+3
2015-03-30Auto merge of #23838 - kgv:master, r=steveklabnikbors-2/+1
Remove the last sentence about standard io chapter. Additional Fixes #23760
2015-03-29Auto merge of #23830 - petrochenkov:spellcheck, r=steveklabnikbors-2/+2
With help of https://github.com/lucasdemarchi/codespell r? @steveklabnik
2015-03-29Fixed wrong name of test module in testing.mdGermano Gabbianelli-3/+3
The documentation says that 'The current convention is to use the `test` module to hold your "unit-style"' but then defines the module as "tests" instead.
2015-03-29Remove about standard io chapter from the book (from ↵kgv-2/+1
arrays-vectors-and-slices chapter) Remove the last sentence about standard io chapter. Additional Fixes #23760
2015-03-29Rollup merge of #23829 - huachaohuang:master, r=ManishearthManish Goregaokar-1/+1
2015-03-29Fix typoHuachao Huang-1/+1
2015-03-28Remove standard io chapter from the bookSteve Klabnik-167/+0
This was originally used to set up the guessing game, but that no longer exists. This version uses `old_io`, and updating it involves talking about `&mut` and such, which we haven't covered yet. So, for now, let's just remove it. Fixes #23760
2015-03-28Fix some typosVadim Petrochenkov-2/+2
2015-03-28Rollup merge of #23804 - dnwade:patch-1, r=ManishearthManish Goregaokar-1/+1
r? @steveklabnik
2015-03-28Rollup merge of #23788 - steveklabnik:gh23748, r=alexcrichtonManish Goregaokar-1/+2
Fixes #23748
2015-03-28Rollup merge of #23751 - tshepang:do-not-hardcode-the-growth, r=ManishearthManish Goregaokar-4/+4
I found the arbitrary `10` surprising. A better method name, in such a case, would be `grow_by_10` :)
2015-03-28Rollup merge of #23332 - jakub-:rustup-curl-silent-flag, r=brsonManish Goregaokar-2/+2
curl's progress meter would otherwise interfere with sudo's password prompt. In addition, add the -f flag to make sure 4xx status codes are treated as errors. r? @brson
2015-03-28book: Fix typo Dan W.-1/+1
r? @steveklabnik
2015-03-27rollup merge of #23786: alexcrichton/less-quotesAlex Crichton-1/+1
Conflicts: src/test/auxiliary/static-function-pointer-aux.rs src/test/auxiliary/trait_default_method_xc_aux.rs src/test/run-pass/issue-4545.rs
2015-03-27rollup merge of #23794: brson/slicegateAlex Crichton-3/+8
Conflicts: src/test/run-pass/issue-13027.rs
2015-03-27Explain why &self is commonSteve Klabnik-1/+2
Fixes #23748
2015-03-27Feature gate *all* slice patterns. #23121Brian Anderson-3/+8
Until some backwards-compatibility hazards are fixed in #23121, these need to be unstable. [breaking-change]
2015-03-27rollup merge of #23285: steveklabnik/gh11794Alex Crichton-239/+22
Fixes #11794 I mostly removed superflous examples which use the standard library. I have one more quesiton here though: threads. They're mostly a library thing, at this point, right?
2015-03-27Test fixes and rebase conflicts, round 1Alex Crichton-4/+6
2015-03-27Unquote all crate names without underscoresRicho Healey-1/+1
2015-03-27rollup merge of #23741: alexcrichton/remove-int-uintAlex Crichton-8/+5
Conflicts: src/librustc/middle/ty.rs src/librustc_trans/trans/adt.rs src/librustc_typeck/check/mod.rs src/libserialize/json.rs src/test/run-pass/spawn-fn.rs
2015-03-27rollup merge of #23767: tshepang/typoAlex Crichton-1/+2
2015-03-27rollup merge of #23764: tshepang/no-guessing-anymoreAlex Crichton-9/+4