about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-03-22Rollup merge of #59329 - petrochenkov:rmcff, r=alexcrichtonMazdak Farrokhzad-45/+0
cleanup: Remove compile-fail-fulldeps directory again It was already removed once in https://github.com/rust-lang/rust/pull/56444, but was partially resurrected by rebase of some other PR.
2019-03-22Rollup merge of #59327 - Xaeroxe:clamp-doc, r=scottmcmMazdak Farrokhzad-0/+38
Add NAN test to docs Documents and tests NAN behavior for the new (f32, f64)::clamp function.
2019-03-22Rollup merge of #59323 - euclio:enum-instead-of-variant, r=varkorMazdak Farrokhzad-47/+118
use suggestions for "enum instead of variant" error
2019-03-22Rollup merge of #59322 - estebank:diag-tweak, r=davidtwcoMazdak Farrokhzad-72/+51
Tweak incorrect escaped char diagnostic
2019-03-22Rollup merge of #59321 - varkor:unify-E0109-E0110-E0111, r=davidtwcoMazdak Farrokhzad-223/+206
Unify E0109, E0110 and E0111 Error messages should no longer be restricted to specific generic kinds.
2019-03-22Rollup merge of #59309 - o01eg:verbose-copy-files, r=alexcrichtonMazdak Farrokhzad-0/+12
Add messages for different verbosity levels. Output copy actions.
2019-03-22Rollup merge of #59304 - gnzlbg:bench_tests, r=alexcrichtonMazdak Farrokhzad-0/+25
Move some bench tests back from libtest It doesn't make much sense to test these on rust-lang/libtest since they exercise the `#[bench]` macro which is part of rust-lang/rust. This PR moves these tests back here. r? @alexcrichton
2019-03-22Rollup merge of #59297 - euclio:field-method-suggestions, r=estebankMazdak Farrokhzad-53/+98
convert field/method confusion help to suggestions
2019-03-22Rollup merge of #59291 - SimonSapin:nonzero-thread-id, r=alexcrichtonMazdak Farrokhzad-4/+11
Make Option<ThreadId> no larger than ThreadId, with NonZeroU64
2019-03-22Rollup merge of #59273 - llogiq:hir-docs, r=matthewjasperMazdak Farrokhzad-1/+12
some small HIR doc improvements
2019-03-22Rollup merge of #59266 - estebank:struct-parse-recovery, r=petrochenkovMazdak Farrokhzad-58/+111
Do not complain about non-existing fields after parse recovery When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it. Fix #57361.
2019-03-22Rollup merge of #59236 - mati865:miri-preview, r=oli-obkMazdak Farrokhzad-3/+4
Rename miri component to miri-preview It should fix installation via `rustup` and indicates it's not stable yet.
2019-03-22Rollup merge of #59190 - greg-kargin:master, r=sanxiynMazdak Farrokhzad-56/+56
consistent naming for Rhs type parameter in libcore/ops Rename RHS type parameter occurrences RHS->Rhs to make it consistent throughout files and follow naming conventions.
2019-03-22Rollup merge of #59172 - varkor:contributing-contributions, r=steveklabnikMazdak Farrokhzad-23/+29
Update and clean up several parts of CONTRIBUTING.md
2019-03-22Rollup merge of #59170 - varkor:const-generics-rustdoc, r=QuietMisdreavus,eddybMazdak Farrokhzad-117/+156
Add const generics to rustdoc Split out from #53645. This work is a collaborative effort with @yodaldevoid. The `FIXME`s are waiting on a refactor to `LazyConst`. I'll address these in a follow up, but I thought it would be better to implement the rest now to avoid bitrot. r? @QuietMisdreavus
2019-03-22Rollup merge of #59106 - LinusU:udp-peer-addr, r=kennytmMazdak Farrokhzad-2/+69
Add peer_addr function to UdpSocket Fixes #59104 This is my first pull request to Rust, so opening early for some feedback. My biggest question is: where do I add tests? Any comments very much appreciated!
2019-03-22Auto merge of #57810 - MikaelUrankar:stack_t_bsd, r=nagisabors-66/+66
FreeBSD 10.x is EOL, in FreeBSD 11 and later, ss_sp is actually a void* …d* [1] dragonflybsd still uses c_char [2] [1] https://svnweb.freebsd.org/base/releng/11.2/sys/sys/signal.h?revision=334459&view=markup#l438 [2] https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/signal.h#L339
2019-03-22Rename miri component to miri-previewMateusz Mikuła-3/+4
It should fix installation via rustup and indicates it's not stable yet
2019-03-22Auto merge of #59035 - estebank:closure-instacall, r=davidtwcobors-1/+53
When encountering `||{}()`, suggest the likely intended `(||{})()` Fix #55851.
2019-03-22Auto merge of #58995 - Centril:refactor-build-manifest, r=alexcrichtonbors-204/+197
Refactor tools/build-mainfest I saw some duplication in https://github.com/rust-lang/rust/pull/58990 and got an itch... Will likely need to be rebased when that lands. Hopefully the PR should have zero semantic changes... r? @alexcrichton
2019-03-22Auto merge of #59031 - estebank:recover-from-comaless, r=petrochenkovbors-43/+78
Recover from missing comma between enum variants and from bad `pub` kw Fix #56579. Fix #56473.
2019-03-21Auto merge of #58981 - estebank:elseless-if, r=davidtwcobors-3/+135
Point at coercion reason for `if` expressions without else clause if caused by return type ``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ``` Fix #25228.
2019-03-21Auto merge of #58948 - petrochenkov:overlap, r=cramertjbors-1/+36
hygiene: Fix identifier comparison in impl overlap check Fixes https://github.com/rust-lang/rust/issues/58942
2019-03-21hygiene: Fix identifier comparison in impl overlap checkVadim Petrochenkov-1/+36
2019-03-21Update cargoMikaelUrankar-64/+64
2019-03-21FreeBSD 10.x is EOL, in FreeBSD 11 and later, ss_sp is actually a void* [1]MikaelUrankar-2/+2
dragonflybsd still uses c_char [2] [1] https://svnweb.freebsd.org/base/releng/11.2/sys/sys/signal.h?revision=334459&view=markup#l438 [2] https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/signal.h#L339
2019-03-21use suggestions for "enum instead of variant" errorAndy Russell-47/+118
2019-03-21Auto merge of #58422 - LukasKalbertodt:seek-convenience, r=alexcrichtonbors-2/+134
Add provided methods `Seek::{stream_len, stream_position}` This adds two new, provided methods to the `io::Seek` trait: - `fn stream_len(&mut self) -> Result<u64>` - `fn stream_position(&mut self) -> Result<u64>` Both are added for convenience and to improve readability in user code. Reading `file.stream_len()` is much better than to manually seek two or three times. Similarly, `file.stream_position()` is much more clear than `file.seek(SeekFrom::Current(0))`. You can find prior discussions [in this internals thread](https://internals.rust-lang.org/t/pre-rfc-idea-extend-io-seek-with-convenience-methods-with-e-g-stream-len/9262). I think I addressed all concerns in that thread. I already wrote three RFCs to add a small new API to libstd but I noticed that many public changes to libstd happen without an RFC. So I figured I can try opening a PR directly without going through RFCs first. After all, we do have rfcbot here too. If you think this change is too big to merge without an RFC, I can still close this PR and write an RFC.
2019-03-21Auto merge of #58927 - GuillaumeGomez:default-keyword, r=QuietMisdreavusbors-7/+51
Add default keyword handling in rustdoc Fixes #58898. r? @QuietMisdreavus
2019-03-21Auto merge of #58913 - Milack27:patch_buf_reader, r=joshtriplettbors-2/+45
Add new test case for possible bug in BufReader When reading a large chunk from a BufReader, if all the bytes from the buffer have been already consumed, the internal buffer is bypassed entirely. However, it is not invalidated, and it's possible to access its contents using the `seek_relative` method, because it tries to reuse the existing buffer.
2019-03-21Auto merge of #58902 - matthewjasper:generator-cleanup-blocks, r=davidtwcobors-60/+129
Fixes for the generator transform * Moves cleanup annotations in pretty printed MIR so that they can be tested * Correctly determines which drops are in cleanup blocks when elaborating generator drops * Use the correct state for poisoning a generator Closes #58892
2019-03-20Auto merge of #58897 - Mark-Simulacrum:tool-rework, r=alexcrichtonbors-62/+99
Rework how bootstrap tools are built This makes bootstrap tools buildable and testable in stage 0 with the downloaded bootstrap compiler, futhermore, it makes it such that they cannot be built in any other stage. Notably, this will also mean that compiletest may need to wait a cycle before it can use changes to `libtest`, as it no longer depends on the in-tree libtest.
2019-03-20Fix f64 testJacob Kiesel-1/+1
2019-03-21cleanup: Remove compile-fail-fulldeps directory againVadim Petrochenkov-45/+0
2019-03-20Fix formatting and add unit tests for panic casesJacob Kiesel-2/+38
2019-03-20Add NAN test to docsJacob Kiesel-0/+2
2019-03-20Tweak incorrect escaped char diagnosticEsteban Küber-72/+51
2019-03-20Update testsvarkor-182/+179
2019-03-20Unify E0109, E0110 and E0111 errorsvarkor-16/+13
2019-03-20Unify E0109, E0110 and E0111 diagnostic messagesvarkor-25/+14
2019-03-20Add a test for size_of Option<ThreadId>Simon Sapin-1/+7
2019-03-20Auto merge of #58791 - denzp:asm-compile-tests, r=alexcrichtonbors-140/+327
Introduce assembly tests suite The change introduces a new test suite - **Assembly** tests. The motivation behind this is an ability to perform end-to-end codegen testing with LLVM backend. Turned out, NVPTX backend sometimes missing common Rust features (`i128` and libcalls in the past, and still full atomics support) due to different reasons. Prior to this change, basic NVPTX assembly tests were implemented within `run-make` suite. Now, it's easier to write additional and maintain existing tests for the target. cc @gnzlbg @peterhj cc @eddyb I adjusted mangling scheme expectation, so there is no need to change the tests for #57967
2019-03-20Auto merge of #57018 - dcreager:redundant-linker, r=alexcrichtonbors-25/+75
Keep last redundant linker flag, not first When a library (L1) is passed to the linker multiple times, this is sometimes purposeful: there might be several other libraries in the linker command (L2 and L3) that all depend on L1. You'd end up with a (simplified) linker command that looks like: ``` -l2 -l1 -l3 -l1 ``` With the previous behavior, when rustc encountered a redundant library, it would keep the first instance, and remove the later ones, resulting in: ``` -l2 -l1 -l3 ``` This can cause a linker error, because on some platforms (e.g. Linux), the linker will only include symbols from L1 that are needed *at the point it's referenced in the command line*. So if L3 depends on additional symbols from L1, which aren't needed by L2, the linker won't know to include them, and you'll end up with "undefined symbols" errors. A better behavior is to keep the *last* instance of the library: ``` -l2 -l3 -l1 ``` This ensures that all "downstream" libraries have been included in the linker command before the "upstream" library is referenced. Fixes rust-lang#47989
2019-03-20Add messages for different verbosity levels.O01eg-0/+12
Output copy actions
2019-03-20Auto merge of #59298 - kennytm:rollup, r=kennytmbors-49/+122
Rollup of 5 pull requests (all of which changes `src/ci/docker`) Successful merges: - #58986 ([CI] Update binutils for powerpc64 and powerpc64le) - #59038 (Track embedded-book in the toolstate) - #59055 (CI: Set job names.) - #59253 (Calculate Docker cache hash precisely from Dockerfile's dependencies) - #59257 (Update CI configuration for building Redox libraries) Failed merges: r? @ghost
2019-03-20Move some bench tests back from libtestgnzlbg-0/+25
2019-03-20Rollup merge of #59257 - redox-os:upstream-redox, r=sanxiynkennytm-10/+4
Update CI configuration for building Redox libraries This fixes https://github.com/rust-lang/rust/issues/59254
2019-03-20Rollup merge of #59253 - kennytm:precise-docker-cache-hash, r=pietroalbinikennytm-1/+12
Calculate Docker cache hash precisely from Dockerfile's dependencies #58549 changed the Docker cache calculation to include every file under `src/ci/docker`, so that when files under `dist-x86_64-linux` is changed, its dependent image `dist-i686-linux` will also be rebuilt. However, this ultraconservative solution caused the `dist-i686-linux` to be rebuilt every time an irrelevant Dockerfile (e.g. the PowerPC ones) is changed, which increases the building time beyond 3 hours and forcing a spurious but expected failure. This commit instead parses the Dockerfile itself and look for the actual dependencies. The scripts needs to be copied into the Docker image, which must be done with the COPY command, so we just need to find all lines with a COPY command and add the source file into the hash calculator. Note: this script only handles single-lined COPY command in the form `COPY src1 src2 src3 dst`, since these are the only variant used inside this repository.
2019-03-20Rollup merge of #59055 - ehuss:ci-job-name, r=alexcrichtonkennytm-34/+76
CI: Set job names. This should make it easier to identify what each job is doing when looking at the Travis or Appveyor UI. - Set `name` for each job in Travis. - Move `CI_JOB_NAME` to the front in Appveyor so that it appears first in the UI.
2019-03-20Rollup merge of #59038 - kennytm:track-embedded-book, r=oli-obkkennytm-3/+9
Track embedded-book in the toolstate The embedded book was tested in the tools job but the test result was never published. This PR adds maintainer information of embedded-book. This PR also requires the next update to embedded-book to pass the all tests, currently its state is test-fail. rust-lang-nursery/rust-toolstate#10 should be merged before this PR.