about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-08Rollup merge of #58883 - estebank:unused-closure-arg, r=varkorPietro Albini-1/+54
Suggest appropriate code for unused field when destructuring pattern Fix #56472.
2019-03-08Rollup merge of #58877 - estebank:macro-borrow, r=davidtwcoPietro Albini-3/+54
Suggest removal of `&` when borrowing macro and appropriate Fix #58815.
2019-03-08Rollup merge of #58861 - estebank:fix-negative-traits, r=petrochenkovPietro Albini-24/+43
Expand where negative supertrait specific error is shown Fix #58857. r? @petrochenkov
2019-03-08Rollup merge of #58369 - nox:sync-hash-map-entry, r=AmanieuPietro Albini-0/+11
Make the Entry API of HashMap<K, V> Sync and Send Fixes #45219
2019-03-08Rollup merge of #58269 - taeguk:add-some-sources-to-rust-src-distribution, ↵Pietro Albini-0/+2
r=Mark-Simulacrum Add librustc and libsyntax to rust-src distribution. Fixes #58268.
2019-03-08Rollup merge of #58204 - estebank:impl-trait-semi, r=zackmdavisPietro Albini-12/+72
On return type `impl Trait` for block with no expr point at last semi Partial solution, doesn't actually validate that the last statement in the function body can satisfy the trait bound, but it's a good incremental improvement over the status quo. ``` error[E0277]: the trait bound `(): Bar` is not satisfied --> $DIR/impl-trait-return-trailing-semicolon.rs:3:13 | LL | fn foo() -> impl Bar { | ^^^^^^^^ the trait `Bar` is not implemented for `()` LL | 5; | - consider removing this semicolon | = note: the return type of a function must have a statically known size ``` Partially addresses #54771.
2019-03-08Rollup merge of #58080 - MikaelUrankar:freebsd_arm, r=sanxiynPietro Albini-0/+54
Add FreeBSD armv6 and armv7 targets
2019-03-08Auto merge of #58903 - estebank:forgetful-delims, r=petrochenkovbors-70/+181
Always emit unclosed delimiter diagnostics Fix #58886.
2019-03-08Auto merge of #58013 - Zoxc:stable-hash-macro-simple, r=oli-obkbors-87/+381
Create a derive macro for HashStable and allow proc macros in rustc A combination of https://github.com/rust-lang/rust/pull/56864 and https://github.com/rust-lang/rust/pull/56795. There were complications with using `serde_derive` as rustc doesn't know which crate to use for the host when there is a serde_derive in the sysroot and cargo passes another on the command line built from crates.io. r? @eddyb (for proc macro changes) @alexcrichton (for rustbuild changes) @michaelwoerister (for the macro itself)
2019-03-07Always call read/write from default vectored io methodsSteven Fackler-28/+32
2019-03-07Fix SGX implementations of read/write_vectored.Steven Fackler-12/+10
2019-03-07Add a test for invalid const argumentsvarkor-0/+12
2019-03-07update treat-err-as-bug testEsteban Küber-1/+1
2019-03-07Add more details to elseless if errorEsteban Küber-8/+69
2019-03-07address review commentsEsteban Küber-34/+44
2019-03-08Improve recovery for missing trait in a trait implVadim Petrochenkov-16/+15
2019-03-07Point at coercion reason for if exprs without else clauseEsteban Küber-1/+62
``` 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 `()` ```
2019-03-07Adds diagnostic message and UI test.Wesley Norris-1/+24
2019-03-07Update treat-err-as-bug help textEsteban Küber-1/+1
2019-03-07Fix with_emitter callersEsteban Küber-3/+3
2019-03-07fix bad logicEsteban Küber-3/+4
2019-03-07Fix segfaults in release build C-variadic fnsDan Robertson-9/+27
`va_start` and `va_end` must be called to initialize/cleanup the "spoofed" `VaList` in a Rust defined C-variadic function even if the `VaList` is not used.
2019-03-07hir: remove some obsolete NodeId methodsljedrz-49/+35
2019-03-07hir: remove Visitor::visit_def_mentionljedrz-20/+1
2019-03-07hir: replace NodeId with HirId in Destinationljedrz-29/+30
2019-03-07hir: remove NodeId from PatKindljedrz-53/+48
2019-03-07Keep current behavior while accepting error countEsteban Küber-11/+30
2019-03-07Actually publish miri in the manifestOliver Scherer-1/+3
2019-03-07fix bad use of with_emitterEsteban Küber-2/+2
2019-03-07hir: remove NodeId from PathSegmentljedrz-14/+4
2019-03-07HirIdification: replace NodeId method callsljedrz-339/+336
2019-03-06Wrap a long configure lineJosh Stone-1/+2
2019-03-06[CI] Update binutils for powerpc64 and powerpc64leJosh Stone-1/+20
Cargo powerpc64 and powerpc64le are seeing `SIGILL` crashes in openssl, which was found to be a linking problem, fixed by newer binutils. See <https://github.com/rust-lang/rust/issues/57345#issuecomment-462094555> For powerpc64 we're using crosstool-ng, which doesn't offer a newer binutils version, but we can just compile it separately. On powerpc64le we're already building binutils. Both are now updated to binutils 2.32. Closes rust-lang/cargo#6320 Closes rust-lang/rust#57345 Closes rust-lang/rustup.rs#1620
2019-03-06Fix incorrect defaultEsteban Kuber-1/+1
2019-03-06Make `-Z treat-err-as-bug` take a number of errors to be emittedEsteban Küber-19/+28
`-Z treat-err-as-bug=0` will cause `rustc` to panic after the first error is reported. `-Z treat-err-as-bug=2` will cause `rustc` to panic after 3 errors have been reported.
2019-03-06Rely on drop to emit unclosed delimsEsteban Küber-1/+0
2019-03-06Simplify codeEsteban Küber-29/+16
2019-03-06Add regression test for #58886Esteban Küber-0/+53
2019-03-06Always emit mismatched delim errors, never panicEsteban Küber-3/+2
2019-03-06Collect unclosed delimiters in parent parserEsteban Küber-35/+45
2019-03-06Emit missing unclosed delimiter errorsEsteban Küber-55/+56
2019-03-06Panic when unmatched delimiters aren't emittedEsteban Küber-1/+8
2019-03-06Reduce test caseEsteban Küber-18/+4
2019-03-06Emit unclosed delimiters during recoveryEsteban Küber-1/+14
2019-03-06Bail when encountering a second unexpected token in the same spanEsteban Küber-78/+25
2019-03-06Do not panic on missing close parenEsteban Küber-1/+110
Fix #58856.
2019-03-06Surround found token with `Esteban Küber-3/+3
2019-03-06Fix buffer invalidation at BufReader.read_vectoredAndré Vicente Milack-9/+11
2019-03-06Apply suggestions from code reviewRalf Jung-1/+1
2019-03-06Apply suggestions from code reviewMazdak Farrokhzad-3/+3
Co-Authored-By: RalfJung <post@ralfj.de>