about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-12-30Rollup merge of #30620 - salty-horse:an_mut, r=brsonSteve Klabnik-4/+4
As discussed in issue #30568.
2015-12-30Rollup merge of #30546 - tshepang:add-links, r=steveklabnikSteve Klabnik-15/+36
2015-12-30Rollup merge of #30511 - defyrlt:issue_30507, r=steveklabnikSteve Klabnik-10/+11
Resolves #30507 r? @steveklabnik
2015-12-30Rollup merge of #30502 - Luke-Nukem:master, r=steveklabnikSteve Klabnik-16/+16
Rewrite of a paragraph in in the `match` section. The colon `:` should be used only when the sentence preceeding it is a complete sentence. If this is not the case, then a `;` should be used; this denotes that the following fragment is a part of the previous fragment. I got a new bike; it has two wheels. (Similar to I got a new bike, it has two wheels) The ice cream truck has great flavours; blueberry, blackberry, berryberry. Writing a complete sentence: - with a list under it - You can join two sentences with it: Much like this. r? @steveklabnik
2015-12-30Rollup merge of #30373 - ChrisBuchholz:master, r=steveklabnikSteve Klabnik-7/+13
The current explanation for scan() is not very clear as to how it works, especially when it compares itself to fold(). I believe these changes makes it all a bit more clear for the reader, and makes it easier to understand the example code. r? @steveklabnik
2015-12-30Auto merge of #30542 - nrc:errs-base, r=nagisabors-1517/+2253
As discussed [here](https://internals.rust-lang.org/t/more-structured-errors/3005) r? @nikomatsakis or anyone else on the @rust-lang/compiler team
2015-12-30doc: add gravesTshepang Lekhonkhobe-23/+23
2015-12-30doc: add some links for io::stdioTshepang Lekhonkhobe-14/+35
2015-12-30Auto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiynbors-75/+81
This PR siliences some warnings when compiling stdlib with --test. Mostly remove some unused imports and added a few `#[allow(..)]`. I also marked some signal handling functions with `#[cfg(not(test))]`, because they are only called through `rt::lang_start`, which is also marked as `#[cfg(not(test))]`
2015-12-30Rebasing and review commentsNick Cameron-35/+30
2015-12-30RefactoringNick Cameron-225/+237
2015-12-30use structured errorsNick Cameron-1547/+2032
2015-12-30Structured diagnosticsNick Cameron-59/+303
2015-12-30Auto merge of #29974 - brson:gold, r=alexcrichtonbors-0/+57
When using `cc` for linking rustc will, if gold is available (by looking for `/usr/bin/ld.gold`), pass `-fuse-ld=gold` to `cc`. In some scenarios gold links much faster than ld. Servo uses it to considerably speed up linking. gold behaves nearly identically to ld (though I think there are rare corner cases that don't work still). I've run this through crater and everything there continues to link. To disable, pass `-C disable-gold`.
2015-12-29Auto merge of #30619 - steveklabnik:rollup, r=steveklabnikbors-14/+49
- Successful merges: #30253, #30390, #30405, #30549, #30603, #30610 - Failed merges:
2015-12-29book: Replace "an &mut" with "a mut". Fixes #30568Ori Avtalion-4/+4
2015-12-29Rollup merge of #30610 - steveklabnik:gh30600, r=sfacklerSteve Klabnik-3/+3
Also, make its panic description identical in wording to assert_eq. Fixes #30600
2015-12-29Rollup merge of #30603 - cmr:extern-failure-error-message, r=ManishearthSteve Klabnik-0/+2
@ubsan brought up this relatively poor error message. This adds a help message hinting when the problem actually is, and how to fix it.
2015-12-29Rollup merge of #30549 - mitaa:doc_dstruct, r=brsonSteve Klabnik-1/+1
(reported in #30477)
2015-12-29Rollup merge of #30405 - durka:patch-12, r=steveklabnikSteve Klabnik-2/+1
Fixes #30217.
2015-12-29Rollup merge of #30390 - mitaa:patch-1, r=steveklabnikSteve Klabnik-1/+1
None of my devices/browsers renders this correctly. r? @steveklabnik
2015-12-29Rollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnikSteve Klabnik-7/+41
r? @steveklabnik
2015-12-29Correct the documentation of debug_assert_eqSteve Klabnik-3/+3
Also, make its panic description identical in wording to assert_eq. Fixes #30600
2015-12-29Fix warnings when compiling stdlib with --testFlorian Hahn-75/+81
2015-12-29Add a hint when given --extern with an indeterminate typeCorey Richardson-0/+2
@ubsan brought up this relatively poor error message. This adds a help message hinting when the problem actually is, and how to fix it.
2015-12-28Auto merge of #30548 - mmcco:linux-syscall, r=brsonbors-5/+1
There's no need for us to redeclare it in an extern block. We should probably put the syscall number constants in libc too.
2015-12-28Link with ld.gold by defaultBrian Anderson-0/+57
To disable, pass `-C disable-gold`
2015-12-28[MIR] Fix setting discriminant for unit enumsSimonas Kazlauskas-1/+14
2015-12-28Auto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnikbors-20/+19
r? @steveklabnik
2015-12-28Auto merge of #30547 - mmcco:cfg, r=sanxiynbors-2/+2
2015-12-28Auto merge of #30579 - dotdash:30478, r=arielb1bors-7/+11
`auto_ref()` currently returns an Rvalue datum for the ref'd value, which is fine for thin pointers, but for fat pointers this means that once the pointer is moved out of that datum, its memory will be marked as dead. And because there is not necessarily an intermediate temporary involved we can end up marking memory as dead that is actually still used. As I don't want to break the micro-optimization for thin pointers by always returning an Lvalue datum, I decided to only do so for fat pointers. Fix #30478
2015-12-27Auto merge of #30582 - arielb1:self-test, r=eddybbors-366/+164
the old code was *so terrible*. r? @eddyb
2015-12-28remove hack in region inferenceAriel Ben-Yehuda-7/+0
I forgot about it in the previous commit
2015-12-28rewrite the method-receiver matching codeAriel Ben-Yehuda-359/+164
the old code was *so terrible*.
2015-12-27Auto merge of #30575 - jswalden:error-handling-typo, r=apasel422bors-1/+1
Didn't build/test the change, but if that one-character fix isn't correct, I'll eat my hat. :-) Found this reading the book over the last week or two since Mozlando -- much enjoying the book so far.
2015-12-27Fix `auto_ref()` for fat pointersBjörn Steinbrink-7/+11
`auto_ref()` currently returns an Rvalue datum for the ref'd value, which is fine for thin pointers, but for fat pointers this means that once the pointer is moved out of that datum, its memory will be marked as dead. And because there is not necessarily an intermediate temporary involved we can end up marking memory as dead that is actually still used. As I don't want to break the micro-optimization for thin pointers by always returning an Lvalue datum, I decided to only do so for fat pointers. Fix #30478
2015-12-27Change the typo 'that' to 'than' in the book error-handling chapter.Jeff Walden-1/+1
2015-12-27Auto merge of #30566 - salty-horse:doc_typo, r=apasel422bors-1/+1
Small typo. vectors -> vector.
2015-12-26Fix links in char docsFlorian Hartwig-11/+11
2015-12-26book: Fix typoOri Avtalion-1/+1
2015-12-26Also fix MIRification of unit enum variantsSimonas Kazlauskas-17/+36
2015-12-26Fix some links in str docsFlorian Hartwig-3/+3
2015-12-26Fix links in docs for std::ioFlorian Hartwig-4/+4
2015-12-26Fix link that is currently broken due to bad markupFlorian Hartwig-2/+1
2015-12-25Auto merge of #30558 - jonas-schievink:delete-ast, r=nrcbors-25/+33
Or more specifically, after running early lints. Closes #28142
2015-12-25Delete the AST after loweringJonas Schievink-3/+13
2015-12-25Rollup merge of #30552 - mmcco:align, r=steveklabnikManish Goregaokar-2/+2
Trivial, but my eye is twitching.
2015-12-25Rollup merge of #30551 - nagisa:mir-unit-structs, r=luqmanaManish Goregaokar-54/+73
Fixes https://github.com/rust-lang/rust/issues/30514 i also went ahead and removed the redundant `ItemKind`s. r? @nikomatsakis (this is an easy one I guess)
2015-12-25Rollup merge of #30545 - bluss:operator-overload, r=steveklabnikManish Goregaokar-5/+6
book: Some operator fixes for the syntax index - Correct the names of the comparison traits (PartialOrd) - Mention only the traits that overload the operator (PartialOrd, PartialEq), not operator-unrelated traits (Ord, Eq). - Add `!=` operator.
2015-12-25Rollup merge of #30528 - michaelwoerister:fix-extern-def-paths, r=nikomatsakisManish Goregaokar-23/+50
Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec". cc @rust-lang/compiler