about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
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
2015-03-27rollup merge of #23752: alexcrichton/remove-should-failAlex Crichton-1/+1
This attribute has been deprecated in favor of #[should_panic]. This also updates rustdoc to no longer accept the `should_fail` directive and instead renames it to `should_panic`.
2015-03-27rollup merge of #23747: tshepang/misleading-infoAlex Crichton-1/+1
The first sentence was not compatible with the second.
2015-03-27rollup merge of #23745: oneeman/trpl-loopingAlex Crichton-1/+1
Was reading the 'Looping' section of the book and was puzzled why the last example uses `0u32..10` when the others don't. Tried it out without and it seems to work, so I figured it should just be `0..10`. If there is a reason it needs to be `0u32..10` it should be explained in the text (I'd offer to do it but I have no idea). r? @steveklabnik
2015-03-27rollup merge of #23719: steveklabnik/unstable_bookAlex Crichton-597/+542
Now that feature flags are only on nightly, it's good to split this stuff out.
2015-03-27rollup merge of #23690: wettowelreactor/patch-1Alex Crichton-2/+2
2015-03-27book: fix typoTshepang Lekhonkhobe-1/+2
2015-03-27book: there is no guessing game anymore, so remove references to itTshepang Lekhonkhobe-9/+4
2015-03-26syntax: Remove support for #[should_fail]Alex Crichton-1/+1
This attribute has been deprecated in favor of #[should_panic]. This also updates rustdoc to no longer accept the `should_fail` directive and instead renames it to `should_panic`.
2015-03-26book: let grow() accept the growth parameterTshepang Lekhonkhobe-4/+4
2015-03-26book: make it one sentenceTshepang Lekhonkhobe-1/+1
2015-03-26doc: change 0u32..10 to 0..10Or Neeman-1/+1
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-8/+5
Now that support has been removed, all lingering use cases are renamed.
2015-03-26New section of the book: nightly rustSteve Klabnik-597/+542
Now that feature flags are only on nightly, it's good to split this stuff out.
2015-03-24Update pointers.mdCamille Roussel-2/+2
2015-03-24rollup merge of #23638: pnkfelix/fsk-reject-specialized-dropsAlex Crichton-8/+9
Reject specialized Drop impls. See Issue #8142 for discussion. This makes it illegal for a Drop impl to be more specialized than the original item. So for example, all of the following are now rejected (when they would have been blindly accepted before): ```rust struct S<A> { ... }; impl Drop for S<i8> { ... } // error: specialized to concrete type struct T<'a> { ... }; impl Drop for T<'static> { ... } // error: specialized to concrete region struct U<A> { ... }; impl<A:Clone> Drop for U<A> { ... } // error: added extra type requirement struct V<'a,'b>; impl<'a,'b:a> Drop for V<'a,'b> { ... } // error: added extra region requirement ``` Due to examples like the above, this is a [breaking-change]. (The fix is to either remove the specialization from the `Drop` impl, or to transcribe the requirements into the struct/enum definition; examples of both are shown in the PR's fixed to `libstd`.) ---- This is likely to be the last thing blocking the removal of the `#[unsafe_destructor]` attribute. Fix #8142 Fix #23584
2015-03-24rollup merge of #23662: steveklabnik/gh23421Alex Crichton-3/+3
I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift. Fixes #23421 r? @pnkfelix
2015-03-24rollup merge of #23629: liammonahan/masterAlex Crichton-2/+2
Found a small typo on the Rust book "ownership" page. Best, Liam r? @steveklabnik
2015-03-24rollup merge of #23573: steveklabnik/doc_associated_typesAlex Crichton-0/+203