about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-03-26permit negative impls for non-auto traitsNiko Matsakis-101/+328
2020-03-26Rollup merge of #70395 - ehuss:update-cargo, r=ehussMazdak Farrokhzad-0/+0
Update cargo. 8 commits in 7019b3ed3d539db7429d10a343b69be8c426b576..8a0d4d9c9abc74fd670353094387d62028b40ae9 2020-03-17 21:02:00 +0000 to 2020-03-24 17:57:04 +0000 - Re-implement proc-macro feature decoupling. (rust-lang/cargo#8028) - Remove unused transitive dependencies: miniz_oxide, adler32 (rust-lang/cargo#8023) - Fix bug with -Zfeatures=dev_dep and `check --profile=test`. (rust-lang/cargo#8027) - Remove Config from CompileOptions. (rust-lang/cargo#8021) - Add `rustless.org` to documented blocklist. (rust-lang/cargo#7922) - Print colored warnings when build script panics (rust-lang/cargo#8017) - Do not supply --crate-version flag to rustdoc if present in RUSTDOCFLAGS (rust-lang/cargo#8014) - Add proc-macro to index, and new feature resolver. (rust-lang/cargo#8003)
2020-03-26Rollup merge of #70389 - Centril:borrowck-no-underscores, r=mark-i-mMazdak Farrokhzad-135/+119
borrowck: prefer "value" over "`_`" in diagnostics Fixes https://github.com/rust-lang/rust/issues/67565. r? @pnkfelix @matthewjasper cc @mark-i-m
2020-03-26Rollup merge of #70386 - Centril:patty, r=estebankMazdak Farrokhzad-12/+52
typeck: minor pattern typing improvements r? @estebank
2020-03-26Rollup merge of #70375 - RalfJung:check-defined-err, r=oli-obkMazdak Farrokhzad-5/+11
avoid catching InterpError Avoid raising and then capturing `InterpError` for the definedness check. Cc https://github.com/rust-lang/rust/issues/69297 r? @oli-obk
2020-03-26Rollup merge of #69878 - estebank:chained-ops, r=CentrilMazdak Farrokhzad-166/+202
Tweak chained operators diagnostic Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors r? @Centril
2020-03-26Rollup merge of #69866 - estebank:guess_head_span, r=eddybMazdak Farrokhzad-71/+89
Rename `def_span` to `guess_head_span` r? @eddyb
2020-03-26typeck/pat: address review commentsMazdak Farrokhzad-6/+6
2020-03-26borrowck diagnostics: address review comments.Mazdak Farrokhzad-26/+31
2020-03-25review commentsEsteban Küber-26/+25
2020-03-25Tweak chained operators diagnosticEsteban Küber-160/+197
Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors
2020-03-25Rename `def_span` to `guess_head_span`Esteban Küber-71/+89
2020-03-26avoid catching InterpErrorRalf Jung-5/+11
2020-03-25Rollup merge of #70407 - spastorino:avoid-nomination-on-toolstate-breakage, ↵Dylan DPC-1/+0
r=Mark-Simulacrum Avoid tagging as I-nominated on toolstate breakage r? @Mark-Simulacrum
2020-03-25Rollup merge of #70406 - GuillaumeGomez:cleanup-e0458, r=Dylan-DPCDylan DPC-1/+3
Clean up E0458 explanation r? @Dylan-DPC
2020-03-25Rollup merge of #70392 - brain0:fixxpy, r=Mark-SimulacrumDylan DPC-2/+8
Make x.py compatible with python 3.8. Python 3.8 removes the `time.clock()` function, use `time.perf_counter()` instead.
2020-03-25Rollup merge of #69700 - anyska:layout-details-rename, r=oli-obkDylan DPC-79/+73
Rename LayoutDetails to just Layout.
2020-03-25Revert "Automatically tag as nominated for T-compiler"Santiago Pastorino-1/+0
This reverts commit 46a8fcdf3cf0eb64b5ac70b4847f1facbdd12be1.
2020-03-25Clean up E0458 explanationGuillaume Gomez-1/+3
2020-03-25Rollup merge of #70379 - JOE1994:patch-2, r=petrochenkovDylan DPC-2/+2
fix incorrect type name in doc comments Change : `InterpCtx` => `InterpCx` (`rustc_mir::interpret::InterpCx`)
2020-03-25Rollup merge of #70366 - cuviper:option-fuse, r=dtolnayDylan DPC-255/+344
Implement Fuse with Option The former `done` flag was roughly similar to an `Option` tag, but left the possibity of misuse. By using a real `Option`, we can set `None` when the iterator is exhausted, removing any way to call it again. We also allow niche layout this way, so the `Fuse` may be smaller. The `FusedIterator` specialization does want to ignore the possibility of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }` to optimize that branch away. The entire `Fuse` implementation is now isolated in its own module to contain that unsafety. r? @scottmcm
2020-03-25Rollup merge of #70352 - bishtpawan:doc/61137-add-long-error-code-e0710, ↵Dylan DPC-1/+37
r=Dylan-DPC Add long error explanation for E0710 Add long explanation for the E0710 error code Part of #61137 r? @GuillaumeGomez
2020-03-25Rollup merge of #70319 - lcnr:issue63695, r=eddybDylan DPC-40/+105
correctly normalize constants closes #70317 implements https://github.com/rust-lang/rust/issues/70125#issuecomment-602133708 r? eddyb cc @varkor
2020-03-25Rollup merge of #70226 - RalfJung:checked, r=oli-obkDylan DPC-280/+337
use checked casts and arithmetic in Miri engine This is unfortunately pretty annoying because we have to cast back and forth between `u64` and `usize` more often that should be necessary, and that cast is considered fallible. For example, should [this](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/interpret/value/enum.ConstValue.html) really be `usize`? Also, `LayoutDetails` uses `usize` for field indices, but in Miri we use `u64` to be able to also handle array indexing. Maybe methods like `mplace_field` should be suitably generalized to accept both `u64` and `usize`? r? @oli-obk Cc @eddyb
2020-03-25impl TrustedRandomAccess for Fuse without FusedIteratorJosh Stone-2/+6
2020-03-25Update cargo.Eric Huss-0/+0
2020-03-25Make x.py compatible with python 3.8.Thomas Bächler-2/+8
Python 3.8 removes the time.clock() function, use time.perf_counter() instead.
2020-03-25run test only on 64bitBastian Kauschke-0/+1
2020-03-25Rename LayoutDetails to just Layout.Ana-Maria Mihalache-79/+73
2020-03-25add usize methods for Size gettersRalf Jung-11/+20
2020-03-25go back to infix ops for SizeRalf Jung-33/+30
2020-03-25add helper method for ptr ops on Scalar; reduce unnecessary large operand of ↵Ralf Jung-49/+35
overflowing_signed_offset
2020-03-25use Size addition instead of checked int additionRalf Jung-1/+1
2020-03-25make Size::from* methods generic in the integer type they acceptRalf Jung-26/+22
2020-03-25remove unnecessary castRalf Jung-1/+1
2020-03-25miri: avoid a bunch of casts by offering usized-based field indexingRalf Jung-68/+106
2020-03-25avoid double-cast in mplace_fieldRalf Jung-8/+8
2020-03-25make bit_width return u64, consistently with other sizes in the compilerRalf Jung-28/+25
2020-03-25use checked casts and arithmetic in Miri engineRalf Jung-153/+186
2020-03-25miri: simplify shift operator overflow checkingRalf Jung-12/+13
2020-03-25Auto merge of #70297 - nnethercote:clean-up-debugging-options, ↵bors-86/+40
r=michaelwoerister Clean up debugging options I found various sub-optimal things when I was looking at option handling.
2020-03-25borrowck: prefer "value" over "`_`".Mazdak Farrokhzad-134/+113
2020-03-25simplify check_pat_tuple_structMazdak Farrokhzad-1/+1
2020-03-25improve non-exhaustive struct pat errorMazdak Farrokhzad-8/+49
2020-03-25is_union() instead of string comparsionMazdak Farrokhzad-4/+3
2020-03-25update tool_lintsbishtpawan-1/+1
2020-03-25Rollup merge of #70376 - tmandry:issue-66312, r=CentrilMazdak Farrokhzad-0/+26
Add test for #66312 Closes #66312. This issue was fixed by #68884. r? @Zoxc
2020-03-25Rollup merge of #70373 - Centril:canon-imports, r=Mark-SimulacrumMazdak Farrokhzad-50/+45
normalize some imports & prefer direct ones r? @Mark-Simulacrum
2020-03-25Rollup merge of #70369 - estebank:bad-placeholder-in-where, r=CentrilMazdak Farrokhzad-81/+75
Fix smaller issues with invalid placeholder type errors Follow up to #70294. - Fix placement of suggested generic param when bounds are present. - Reduce error duplication for invalid placeholder types in `fn` types. r? @Centril
2020-03-25Rollup merge of #70364 - petrochenkov:nofrustc, r=CentrilMazdak Farrokhzad-98/+75
resolve: Remove `rustc_attrs` as a standalone feature gate Now it only gates specific built-in attributes. So if you want to make a rustc attribute, make it a built-in (this was already the case in practice for some time).