about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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-22Add tracking issue number for `seek_convenience`Lukas Kalbertodt-2/+2
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-22Fix ICE with const generic param in structvarkor-17/+48
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-21Include llvm-ar with llvm-tools componentPhilipp Oppermann-0/+1
2019-03-21Fix invalid returned types generationGuillaume Gomez-46/+63
2019-03-21Add bounds for return types as wellGuillaume Gomez-30/+59
2019-03-21Improve bounds searchGuillaume Gomez-52/+11
2019-03-21Small generics search improvementGuillaume Gomez-1/+4
2019-03-21Greatly improve generics handling in rustdoc searchGuillaume Gomez-22/+273
2019-03-21Unify OsString/OsStr for byte-based implementationsJethro Beekman-809/+186
2019-03-21Move one test from run-make-fulldeps to uiVadim Petrochenkov-50/+57
2019-03-21hygiene: Fix identifier comparison in impl overlap checkVadim Petrochenkov-1/+36
2019-03-21Wrapped a line such that it does not exceed 100 characters.Christian-1/+2
2019-03-21Changed inline code by using a single quote.Christian-20/+20
2019-03-21Added back a reference to "the book"Christian-2/+2
2019-03-21review fixesSaleem Jaffer-56/+38
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-21Fixed indentation of list items.Christian-4/+2
2019-03-21Reformatted the text such that the line length does not exceed 100.Christian-15/+22
2019-03-21Fix undefined behavior in hint::spin_loop for x86 targets without SSE2gnzlbg-6/+25
The pause instruction requires SSE2 but was being unconditionally used on targets without it, resulting in undefined behavior. This PR fixes that by only using the pause intrinsic if SSE2 is available. It also removes the inline assembly which was not required since these instructions are available in core::arch, and extends support of the spin_loop hint to arm targets with the v6 feature which also support the yield instruction. Closes #59237 .
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-20Initial version of the documentation change of std::convert.Christian-85/+85
2019-03-20rustc: Allow using `clang` for wasm32 targetsAlex Crichton-107/+174
This commit adds support code for using `clang` directly to link the wasm32-unknown-unknown target. Currently the target is only really configured to link with LLD directly, but this ensures that `clang` can be configured as well. While not immediately useful in the near term it's likely that more wasm32 targets will pop up over time with Clang's new native support for WebAssembly in the 8.0.0 release. Getting support into rustc early should make it easier to experiment with these targets and try out various changes here and there.
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-20expand the fixmeNiko Matsakis-1/+4
2019-03-20refactor so that `relate_ty_var` can accommodate vid on a or b sideNiko Matsakis-22/+130
2019-03-20nll_relate/mod.rs: rustfmtNiko Matsakis-25/+27
2019-03-20Fix a bug in implied boundsscalexm-7/+36
2019-03-20Fix a bug in chalk loweringscalexm-1/+8
Some where clauses were not subtituted for generic bound type vars.
2019-03-20Add unsize impls for arraysscalexm-0/+88
2019-03-20Reorganize `chalk_context::program_clauses`scalexm-319/+343
2019-03-20Gather region constraints not coming from unificationscalexm-57/+34
2019-03-20Fix a bug in chalk unification codescalexm-2/+14
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