about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-01-04Auto merge of #38707 - redox-os:master, r=brsonbors-35/+129
Add socket timeout and ttl support in `sys::redox` This adds support for `read_timeout`, `write_timeout`, and `ttl` on `TcpStream`, `TcpListener`, and `UdpSocket` in the `sys::redox` module. The DNS lookup has been set to use a 5 second timeout by default.
2017-01-04Auto merge of #38809 - alexcrichton:rustbuild-fresh, r=brsonbors-6/+1
rustbuild: Fix a few rebuilding issues Did a bit of investigation and found a few small unrelated issues, but this should help clean up a lot of errors we've been seeing locally.
2017-01-03Auto merge of #38066 - bluss:string-slice-error, r=sfacklerbors-8/+38
Use more specific panic message for &str slicing errors Separate out of bounds errors from character boundary errors, and print more details for character boundary errors. It reports the first error it finds in: 1. begin out of bounds 2. end out of bounds 3. begin <= end violated 3. begin not char boundary 5. end not char boundary. Example: &"abcαβγ"[..4] thread 'str::test_slice_fail_boundary_1' panicked at 'byte index 4 is not a char boundary; it is inside 'α' (bytes 3..5) of `abcαβγ`' Fixes #38052
2017-01-03Revert cargo.lockJeremy Soller-22/+22
2017-01-03Remove -lc, -lm from the target spec - the cross compiler will link thoseJeremy Soller-31/+23
2017-01-03rustbuild: Update where we look for mtime changesAlex Crichton-1/+1
Recent versions of Cargo lift less output up into the "main" directory, so let's look more inside the `deps` folder for changes to propagate differences. Closes #38744 Closes #38746
2017-01-03rustbuild: Allow create_sysroot in stage0Alex Crichton-5/+0
Despite what the comment says, we actually need to do this. We're not cleaning out the stage0 compiler's sysroot, but rather just our own sysroot that we assembled previously.
2017-01-03Auto merge of #38473 - zackmdavis:issue_kebab, r=sanxiynbors-0/+0
prefer hyphens in test files named after issue numbers We have a lot of tests with filenames honoring particular issues by number. Typically, these are called issue-${issue_no}.rs (note the hyphen): ``` $ find . -regextype posix-egrep -regex '.*/issue-[0-9]*.rs' | wc 1289 1289 35935 ``` We also had a much smaller number of files that are like this, but don't have a hyphen in between the substring `issue` and the number: ``` $ find . -regextype posix-egrep -regex '.*/issue[0-9]*.rs' ./debuginfo/issue14411.rs ./debuginfo/issue12886.rs ./debuginfo/issue13213.rs ./debuginfo/issue22656.rs ./debuginfo/issue7712.rs ./compile-fail/issue32829.rs ./run-pass/issue24353.rs ./run-pass/issue34796.rs ./run-pass/issue18173.rs ./run-pass/issue22346.rs ./run-pass/auxiliary/issue13507.rs ./run-pass/issue26127.rs ./run-pass/issue22008.rs ./run-pass/issue34569.rs ./run-pass/issue29927.rs ./run-pass/issue36260.rs ``` Some would argue that the inconsistency is æsthetically displeasing, hence this trivial patch. (Note that run-pass/auxiliary/issue13507.rs has an excuse; it's `use`d in run-pass/issue-13507-2.rs; the matter of there being two different compile-fail tests with different name conventions for issue no. 32829 is also neglected here for the sake of keeping this trivial cleanup patch as trivial as possible for ease of review.)
2017-01-03Auto merge of #38791 - dylanmckay:foreign-item-dc, r=eddybbors-1/+26
Don't warn about dead foreign items if the 'allow(dead_code)' attribute is present This functionality was missing, and should have existed previously. Fixes #38780
2017-01-03Auto merge of #38782 - clarcharr:stupid, r=GuillaumeGomezbors-11/+11
Reword 'stupid' and 'crazy' in docs. These terms are not very descriptive and are better reworded as something else.
2017-01-03Don't warn about dead foreign items if the 'allow(dead_code)' attribute is ↵Dylan McKay-1/+26
present This functionality was missing, and should have existed previously. Fixes #38780
2017-01-02Reword 'stupid' and 'crazy' in docs.Clar Charr-11/+11
2017-01-02Auto merge of #38543 - philipc:unsized-debuginfo, r=michaelwoeristerbors-1/+46
Fix debuginfo for unsized struct members The member was given the size of a fat pointer, which caused llvm to emit DWARF attributes for a 128-bit bitfield.
2017-01-02Auto merge of #38760 - est31:ignorecfg, r=sanxiynbors-1/+1
Fix pre-cfg_attr notation in comment Commit aa3b1261b164eeac3e68573bfc698d1ca943fb05 has changed notation in the test from `#[ignore(cfg(ignorecfg))]` to `#[cfg_attr(ignorecfg, ignore)]`, but missed to change the comment in the accompanying Makefile.
2017-01-02Auto merge of #38766 - eddyb:less-fake-hir, r=arielb1bors-293/+411
Stop creating fake HIR pattern nodes. This replaces all the HIR patterns `rustc_const_eval` creates with the more appropriate HAIR equivalent. The only place left that creates HIR nodes is the "explicit lifetimes in function signature" suggestion, which only creates type nodes while rebuilding the signature, but that is only in case of an error. cc @arielb1
2017-01-01Auto merge of #38548 - GuillaumeGomez:thread_struct_docs, r=frewsxcvbors-0/+65
Add missing example for Thread struct r? @frewsxcv
2017-01-01Auto merge of #38765 - xen0n:i-dont-like-red-bots-2, r=alexcrichtonbors-1/+9
rustbuild: fix dist-analysis with full bootstrap disabled Really fixes #38734, per discussion in #38752 which was solving the underlying problem the wrong way. This just mirrors the [similar logic] in documentation building as suggested, that just takes the stage1 compiler artifacts instead in case of non-full-bootstrap builds. Actually copying the artifacts around seems to be unnecessary. r? @alexcrichton [similar logic]: https://github.com/rust-lang/rust/blob/7b659cfdbce094a790dbb246da2681a47565782a/src/bootstrap/doc.rs#L140-L144
2017-01-01rustc_const_eval: convert constants to Pattern instead of hir::Pat.Eduard-Mihai Burtescu-188/+180
2017-01-02rustbuild: fix dist-analysis with full bootstrap disabledWang Xuerui-1/+9
2017-01-01Fix pre-cfg_attr notation in commentest31-1/+1
Commit aa3b1261b164eeac3e68573bfc698d1ca943fb05 has changed notation in the test from `#[ignore(cfg(ignorecfg))]` to `#[cfg_attr(ignorecfg, ignore)]`, but missed to change the comment in the accompanying Makefile.
2017-01-01rustc_const_eval: build Pattern instead of hir::Pat for pretty-printing.Eduard-Mihai Burtescu-105/+231
2017-01-01Auto merge of #38692 - estebank:remove-try-from-pprust, r=petrochenkovbors-857/+857
Use `?` instead of `try!` macro in `print::pprust`
2017-01-01Auto merge of #38753 - philipc:debuginfo-union, r=petrochenkovbors-10/+15
Add pretty printing of unions in debuggers Fixes #37479
2017-01-01Auto merge of #38745 - CannedYerins:llvm-code-style, r=rkruppebors-443/+446
Improve naming style in rustllvm. As per the LLVM style guide, use CamelCase for all locals and classes, and camelCase for all non-FFI functions. Also, make names of variables of commonly used types more consistent. Fixes #38688. r? @rkruppe
2017-01-01Auto merge of #38726 - japaric:sparc64, r=sanxiynbors-9/+284
sparc64-linux support This is built on top of #38656 and depends on rust-lang/libc#483 Hello world works. The libc-test test suite passes. `panic!` doesn't fully work: ``` $ qemu-sparc64-static ./panic thread 'main' panicked at 'explicit panic', panic.rs:1 note: Run with `RUST_BACKTRACE=1` for a backtrace. Illegal instruction (core dumped) ``` Backtraces don't work either, probably related to the previous point: ``` $ export RUST_BACKTRACE=1 $ qemu-sparc64-static ./panic thread 'main' panicked at 'explicit panic', panic.rs:1 stack backtrace: Illegal instruction (core dumped) ``` r? @alexcrichton @jakllsch Does panicking / backtraces work on sparc64-netbsd? cc @glaubitz
2017-01-01Add pretty printing of unions in debuggersPhilip Craig-10/+15
Fixes #37479
2017-01-01Auto merge of #38711 - programble:doc/slice-iter-method-links, r=brsonbors-0/+45
Add links to methods on all slice iterator struct docs In the same style as `std::slice::Iter` to help people find how to create iterators. r? @steveklabnik
2017-01-01Auto merge of #38713 - clarcharr:trusted_len, r=brsonbors-1/+7
TrustedLen for Empty and Once. These implementations were missing, so, I went ahead and added them.
2017-01-01Merge branch 'master' into sparc64Seo Sanghyeon-2379/+4793
2017-01-01Auto merge of #38653 - Mark-Simulacrum:dropless-arena, r=eddybbors-100/+228
Add a DroplessArena and utilize it as a more efficient arena when possible I will collect performance (probably just `-Ztime-passes`, and more if that shows significant differences, perhaps). 6feba98 also fixes a potential infinite loop if inplace reallocation failed for `TypedArena` (and `DroplessArena` via copied code). r? @eddyb
2017-01-01Auto merge of #38736 - xen0n:save-the-save-analysis, r=alexcrichtonbors-1/+10
rustbuild: save the save analysis Fixes #38734. ~~call me the nightly firefighter~~ r? @alexcrichton
2016-12-31Auto merge of #38708 - alexcrichton:add-distcheck, r=brsonbors-7/+51
Gate on distcheck on Travis This commit adds a new entry to the Travis matrix to gate on distcheck, the illustrious test process that has historically taken *8 hours* to complete and also breaks all the time on nightly. By adding it to Travis we should hope to never see nightly breakage (like https://github.com/rust-lang/rust/issues/38690) because of this ever again! "But wait, surely we can't wait 8 hours for all PRs!" you might be thinking, and you are indeed correct. The distcheck added here is much more optimized for speed than the old buildbot instances for a number of reasons: * We're not building *two host compilers* beforehand. The current distcheck bot does a cross for i686 Linux and x86_64 Linux before it actually runs distcheck, building 6 compilers and LLVM twice. None of this is done in parallel as well (e.g. `-j1`). Not doing any of this work will be a huge win! * We're using sccache to compile LLVM, so it should be much faster. Distcheck on the bots didn't cache LLVM well and rebuilt it every time. All in all, this version of "distcheck" should be exactly like other matrix entries that run tests except that it's a *little* slower to start as it has to create the source tarball then rebuild the build system in the distcheck dir. Overall this should be well under the 2 hours that Android is currently taking anyway. Closes https://github.com/rust-lang/rust/issues/38691
2016-12-31Auto merge of #38482 - est31:i128, r=eddybbors-475/+2217
i128 and u128 support Brings i128 and u128 support to nightly rust, behind a feature flag. The goal of this PR is to do the bulk of the work for 128 bit integer support. Smaller but just as tricky features needed for stabilisation like 128 bit enum discriminants are left for future PRs. Rebased version of #37900, which in turn was a rebase + improvement of #35954 . Sadly I couldn't reopen #37900 due to github. There goes my premium position in the homu queue... [plugin-breaking-change] cc #35118 (tracking issue)
2016-12-31Utilize new in_arena method instead of hashing for Lifting interned itemsMark Simulacrum-27/+25
2016-12-31Split CtxtArenas into GlobalArenas and CtxtInterners.Mark Simulacrum-74/+87
CtxtInterners contains a single DroplessArena, while GlobalArenas contains the TypedArenas still required for the remaining Drop-containing types.
2016-12-31Improve naming style in rustllvm.Ian Kerins-443/+446
As per the LLVM style guide, use CamelCase for all locals and classes, and camelCase for all non-FFI functions. Also, make names of variables of commonly used types more consistent. Fixes #38688.
2016-12-31Fix iabs and add some more testsest31-5/+18
2016-12-31Auto merge of #38737 - keeperofdakeys:proc-macro-derive-Dec-16, r=jseyfriedbors-2/+60
Fix panic when using a macros 1.1 custom derive on a struct containing a macro invocation Fixes #38706 r? @jseyfried
2016-12-31Fix TypedArena infinitely looping when inplace reallocation fails.Mark Simulacrum-2/+2
2016-12-31Add a non type-specific arena.Mark Simulacrum-0/+117
It relies on the underlying types not having special Drop behavior.
2016-12-31rustbuild: fix save-analysis not being saved for 2-stage buildsWang Xuerui-4/+5
2016-12-31Auto merge of #38709 - alexcrichton:check-xsv, r=nikomatsakisbors-0/+6
cargotest: Add xsv to tested crates This was intended to land in #37149 but I ended up backing it out to land the rollup (#38697) last night as I was itching to do so. This morning though xsv has been fixed now (BurntSushi/xsv#53) so we should be able to add it!
2016-12-31Add missing example for Thread structGuillaume Gomez-0/+65
2016-12-31Auto merge of #38702 - philipc:debuginfo-lldb, r=alexcrichtonbors-6/+10
rustbuild: allow running debuginfo-lldb tests on linux
2016-12-31Auto merge of #38667 - alexcrichton:stage0-tools, r=brsonbors-40/+63
rustbuild: Compile all support tools in stage0 This commit changes all tools and such to get compiled in stage0, not in later stages. The purpose of this commit is to cut down dependencies on later stages for future modifications to the build system. Notably we're going to be adding builders that produce a full suite of cross-compiled artifacts for a particular host, and that shouldn't compile the `x86_64-unknown-linux-gnu` compiler more than once. Currently dependencies on, for example, the error index end up compiling the `x86_64-unknown-linux-gnu` compiler more than necessary. As a result here we move many dependencies on these tools to being produced by a stage0 compiler, not a stage1+ compiler. None of these tools actually need to be staged at all, so they'll exhibit consistent behavior across the stages.
2016-12-31Style fixesJosh Driver-6/+3
2016-12-31Stop macro calls in structs for proc_macro_derive from panicingJosh Driver-1/+62
2016-12-31rustbuild: check if compiler is final stage wrt the full bootstrap settingWang Xuerui-0/+8
2016-12-31Auto merge of #38729 - alexcrichton:android-steps, r=brsonbors-7/+14
rustbuild: Add more deps on android-copy-libs The android-copy-libs step is crucial for running tests on the Android target as it copies necessary scripts and such to the emulator. We must run that before running any tests there, but we erroneously only did it for compiletest test suites!
2016-12-30rustbuild: Add more deps on android-copy-libsAlex Crichton-7/+14
The android-copy-libs step is crucial for running tests on the Android target as it copies necessary scripts and such to the emulator. We must run that before running any tests there, but we erroneously only did it for compiletest test suites!