about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-02-22Auto merge of #31704 - tbu-:pr_vec_into_iter_clone, r=aturonbors-1/+29
2016-02-22Auto merge of #30969 - Amanieu:extended_atomic_cmpxchg, r=alexcrichtonbors-49/+577
This is an implementation of rust-lang/rfcs#1443.
2016-02-22Add a test to make sure trans doesn't choke on any of the intrinsicsAmanieu d'Antras-0/+37
2016-02-22Correct Iterator trait documentationMichael Huynh-7/+7
Fixes several minor spelling errors and includes a suggested style fix.
2016-02-22Auto merge of #31813 - nbaksalyar:solaris-fix, r=sanxiynbors-2/+4
A quick fix for several issues that break a Solaris/Illumos build. Also, adds a CPU target specification (as seen in a patch for OpenBSD #31727).
2016-02-22Auto merge of #31811 - alexcrichton:clean-deps, r=sanxiynbors-22/+20
The standard library doesn't depend on rustc_bitflags, so move it to explicit dependencies on all other crates. Additionally, the arena/fmt_macros deps could be dropped from libsyntax.
2016-02-22Auto merge of #31805 - cuviper:android-lfs, r=alexcrichtonbors-1/+4
Android should use 64-bit LFS symbols for `lseek` and `ftruncate`, lest those offset parameters suffer a lossy cast down to a 32-bit `off_t`. Unlike GNU/Linux, Android's `stat`, `dirent`, and related functions are always 64-bit LFS compatible, and `open` already implies `O_LARGEFILE`, so all those don't need to follow Linux. It might be nice to unify them anyway, but those other LFS symbols aren't present in API 18 bionic. r? @alexcrichton
2016-02-22Auto merge of #31806 - gokhanettin:to_lowercase-doc, r=japaricbors-3/+3
`to_lowercase` example mistakenly calls `to_uppercase` function. This fixes the example.
2016-02-21Auto merge of #31810 - gandro:netbsd-fix-stat, r=alexcrichtonbors-10/+29
Some struct members have a slighty different name on NetBSD. This has been fixed in the libc crate, but not in libstd, breaking the NetBSD build. Related C struct definition: http://nxr.netbsd.org/xref/src/sys/sys/stat.h?r=1.68#59 This also removes the broken `st_spare()` from MetadataExt, since it is private field reserved for future use. @dhuseby In case this conflicts with any of your pending patches, feel free to intervene - I'm happy to withdraw this PR. r? @alexcrichton
2016-02-22Fix broken Solaris buildNikita Baksalyar-2/+4
2016-02-21Auto merge of #31792 - Zoxc:sysroot, r=alexcrichtonbors-9/+7
With these changes you can build a freestanding sysroot without using floating points using a Cargo.toml and copying the `deps` folder cargo outputs. ``` [package] name = "sysroot" version = "0.1.0" [lib] path = "lib.rs" crate-type = ["rlib"] [dependencies.core] path = "../vendor/rust/src/src/libcore" features = ["disable_float"] [dependencies] collections = { path = "../vendor/rust/src/src/libcollections" } ```
2016-02-21rustbuild: Sync some Cargo.toml/lib.rs dependenciesAlex Crichton-22/+20
The standard library doesn't depend on rustc_bitflags, so move it to explicit dependencies on all other crates. Additionally, the arena/fmt_macros deps could be dropped from libsyntax.
2016-02-21Fix `struct stat` usage on NetBSDSebastian Wicki-10/+29
Some struct members have a slighty different name on NetBSD. This has been fixed in the libc crate, but not in libstd. This also removes `st_spare` from MetadataExt, since it is private field reserved for future use.
2016-02-21Fix liballoc dependenciesJohn Kåre Alsaker-9/+7
2016-02-21Fix to_lowercase exampleGökhan Karabulut-3/+3
2016-02-21Auto merge of #31799 - cshaffer:book-fixes, r=steveklabnikbors-2/+2
I noticed a few PRs fixing some of the words around the code refactor in the guessing game tutorial, this should be all that's left.
2016-02-21std: Use Android LFS off64_t, ftruncate64, and lseek64Josh Stone-1/+4
Android should use 64-bit LFS symbols for `lseek` and `ftruncate`, lest those offset parameters suffer a lossy cast down to a 32-bit `off_t`. Unlike GNU/Linux, Android's `stat`, `dirent`, and related functions are always 64-bit LFS compatible, and `open` already implies `O_LARGEFILE`, so all those don't need to follow Linux. It might be nice to unify them anyway, but those other LFS symbols aren't present in API 18 bionic. r? @alexcrichton
2016-02-21Auto merge of #31791 - alexcrichton:llvmup3, r=dotdashbors-1/+1
Looks like they picked up a bunch of fixes, one of which is even quite relevant to us! Closes #31505
2016-02-20Fix number of lines and methods in guessing gameChad Shaffer-2/+2
2016-02-21Auto merge of #31761 - Amanieu:volatile, r=alexcrichtonbors-1/+55
Tracking issue: #31756 RFC: rust-lang/rfcs#1467 I've made these unstable for now. Should they be stabilized straight away since we've had plenty of experience with people using the unstable intrinsics?
2016-02-20Auto merge of #31757 - petrochenkov:unitdotdot, r=nikomatsakisbors-12/+12
This warning was introduced on Nov 28, 2015 and got into 1.6 stable, it was later requalified from a hardwired warning to a warn-by-default lint. If this patch is landed soon enough, then `match_of_unit_variant_via_paren_dotdot` will get into 1.8 stable as a deny-by-default lint. My intention is to turn it into a hard error after March 3, 2016, then it will hit stable at 1.9. r? @nikomatsakis cc @pnkfelix
2016-02-20Auto merge of #31608 - frewsxcv:osstring-simple-functions, r=alexcrichtonbors-0/+268
https://github.com/rust-lang/rust/issues/29453
2016-02-20Another rebase on the 3.8 release branch of LLVMAlex Crichton-1/+1
Looks like they picked up a bunch of fixes, one of which is even quite relevant to us! Closes #31505
2016-02-20Add Capacity/length methods for OsString.Corey Farwell-0/+268
https://github.com/rust-lang/rust/issues/29453
2016-02-20Auto merge of #31747 - jseyfried:stop_resolve_after_fail, r=nrcbors-72/+37
Now that #31461 is merged, a failing resolution can never become indeterminate or succeed, so we no longer have to keep trying to resolve failing import directives. r? @nrc
2016-02-20Auto merge of #31474 - arielb1:mir-typeck, r=nikomatsakisbors-190/+1509
This should stop broken MIR from annoying us when we try to implement things
2016-02-20address review commentsAriel Ben-Yehuda-16/+50
2016-02-20Auto merge of #31674 - VladUreche:issue/21221, r=nikomatsakisbors-85/+521
This commit adds functionality that allows the name resolution pass to search for entities (traits/types/enums/structs) by name, in order to show recommendations along with the errors. For now, only E0405 and E0412 have suggestions attached, as per the request in bug #21221, but it's likely other errors can also benefit from the ability to generate suggestions.
2016-02-20Auto merge of #31620 - alexcrichton:fix-out-of-tree-builds, r=brsonbors-14/+15
This removes creating some extraneous directories and also fixes some submodule management with out of tree builds. Closes #31619
2016-02-20Auto merge of #31777 - steveklabnik:rollup, r=steveklabnikbors-31/+46
- Successful merges: #31721, #31737, #31741, #31750, #31763, #31764, #31765, #31775 - Failed merges:
2016-02-20Auto merge of #31771 - alexcrichton:oops-that-didnt-fix-anything, r=brsonbors-0/+5
In #31717 we rebased our LLVM fork over the 3.8 release branch, and it was thought that this fixed #31702. The testing, however, must have been erroneous, as it unfortunately didn't fix the issue! Our MUSL nightly builders are failing from the same assertion reported in the issue, so we at least know the test case is a reproduction! I believe the failure is only happening on the MUSL nightly builders because none of the auto builders have LLVM assertions enabled, and the Linux nightly builder *does* have assertions enabled for the binaries we generate but the distcheck run doesn't test a compiler with LLVM assertions enabled.
2016-02-19test: Fix a spuriously failing test on valgrindAlex Crichton-0/+2
It's unclear to me whether this test failing under valgrind is actually legit. The test only fails in valgrind when everything is dynamically linked, and it appears to work when statically linked. For now just add the `// no-prefer-dynamic` directive and let's just chalk it up to a weird valgrind issue. Closes #31328
2016-02-20use the FulfillmentContext and InferCtxt more correctlyAriel Ben-Yehuda-77/+117
2016-02-20TODO -> FIXMEAriel Ben-Yehuda-2/+2
2016-02-20type-check lvaluesAriel Ben-Yehuda-10/+218
2016-02-20fix a few remaining bugs - make check runs!Ariel Ben-Yehuda-17/+220
2016-02-20store the normalized types of field accessesAriel Ben-Yehuda-56/+150
Fixes #31504
2016-02-20deref the argument of overloaded MIR autoderefAriel Ben-Yehuda-4/+73
Fixes #31466
2016-02-20make *mut T -> *const T a coercionAriel Ben-Yehuda-20/+70
rather than being implicit quasi-subtyping. Nothing good can come out of quasi-subtyping.
2016-02-20tuple arguments to overloaded callsAriel Ben-Yehuda-43/+179
also fix translation of "rust-call" functions, although that could use more optimizations
2016-02-19Add tests for read_volatile and write_volatileAmanieu d'Antras-1/+7
2016-02-20be more type-safe in panic/panic_bounds_checkAriel Ben-Yehuda-17/+23
TODO: find a correct borrow region Fixes #31482
2016-02-20introduce an early pass to clear dead blocksAriel Ben-Yehuda-9/+66
this makes the the MIR assignment pass complete successfully
2016-02-20add -Z mir-opt-level to disable MIR optimizationsAriel Ben-Yehuda-2/+9
setting -Z mir-opt-level=0 will disable all MIR optimizations for easier debugging
2016-02-19Rollup merge of #31775 - nxnfufunezn:issue-31769, r=eddybSteve Klabnik-0/+15
Fixes : #31769 r? @eddyb
2016-02-19Rollup merge of #31765 - tshepang:shorten, r=steveklabnikSteve Klabnik-1/+1
2016-02-19Rollup merge of #31764 - tshepang:overlong-sentence, r=steveklabnikSteve Klabnik-1/+1
2016-02-19Rollup merge of #31763 - tshepang:extraneous-word, r=steveklabnikSteve Klabnik-1/+1
2016-02-19Rollup merge of #31741 - alexcrichton:fix-ios, r=nikomatsakisSteve Klabnik-5/+5
Similar to OSX, these symbols are prefixed by default.
2016-02-19Rollup merge of #31737 - dhuseby:netbsd_fixes, r=alexcrichtonSteve Klabnik-2/+2
this fixes a small compile error when building for netbsd.