about summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2020-03-26permit negative impls for non-auto traitsNiko Matsakis-74/+260
2020-03-26Rollup merge of #70389 - Centril:borrowck-no-underscores, r=mark-i-mMazdak Farrokhzad-41/+41
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-0/+25
typeck: minor pattern typing improvements r? @estebank
2020-03-26Rollup merge of #69878 - estebank:chained-ops, r=CentrilMazdak Farrokhzad-114/+99
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-26typeck/pat: address review commentsMazdak Farrokhzad-5/+5
2020-03-25Tweak chained operators diagnosticEsteban Küber-114/+99
Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors
2020-03-25Rollup merge of #69700 - anyska:layout-details-rename, r=oli-obkDylan DPC-8/+8
Rename LayoutDetails to just Layout.
2020-03-25Rollup merge of #70352 - bishtpawan:doc/61137-add-long-error-code-e0710, ↵Dylan DPC-0/+2
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-12/+24
correctly normalize constants closes #70317 implements https://github.com/rust-lang/rust/issues/70125#issuecomment-602133708 r? eddyb cc @varkor
2020-03-25Rename LayoutDetails to just Layout.Ana-Maria Mihalache-8/+8
2020-03-25borrowck: prefer "value" over "`_`".Mazdak Farrokhzad-41/+41
2020-03-25improve non-exhaustive struct pat errorMazdak Farrokhzad-0/+25
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 #70369 - estebank:bad-placeholder-in-where, r=CentrilMazdak Farrokhzad-73/+59
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-20/+79
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).
2020-03-25Rollup merge of #70331 - jeremystucki:privacy, r=estebankMazdak Farrokhzad-1/+1
Increase verbosity when using update syntax with private fields Resolves #70323
2020-03-24Reduce error duplication for invalid placeholder types in fn typesEsteban Küber-69/+55
2020-03-24Add test for #66312Tyler Mandry-0/+26
Closes #66312. This issue was fixed by #68884.
2020-03-24Rollup merge of #70241 - RalfJung:global-mem, r=oli-obkMazdak Farrokhzad-4/+48
Miri: move ModifiedStatic to ConstEval errors Also generally adjust terminology from "static" to "global" where appropriate (to avoid confusion with specifically `static` items).
2020-03-24Rollup merge of #70234 - anp:tracked-std-traits, r=AmanieuMazdak Farrokhzad-0/+22
#[track_caller] on core::ops::{Index, IndexMut}. Applies the attribute to `core::ops::Index(Mut)` and enough std internals to cover the [functions listed in "tier 1" in the original RFC](https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md#survey-of-panicking-standard-functions). Split out from #69251 to allow separate assessment of perf impact. To my knowledge, this is the last piece of implementing RFC 2091. Tracking issue: https://github.com/rust-lang/rust/issues/47809
2020-03-24resolve: Remove `rustc_attrs` as a standalone feature gateVadim Petrochenkov-20/+79
Now it only gates specific built-in attributes
2020-03-24Fix placement of suggested generic param when bounds are presentEsteban Küber-4/+4
2020-03-24improve normalize cycle errorBastian Kauschke-12/+24
2020-03-24Update tools_lintsbishtpawan-0/+1
2020-03-24Refactor changesbishtpawan-2/+0
2020-03-24Add long error explanation for E0710 #61137bishtpawan-0/+3
2020-03-24bless youRalf Jung-1/+1
2020-03-24get back the more precise error messageRalf Jung-1/+1
2020-03-24bless; add test for mutating a staticRalf Jung-4/+48
2020-03-24Rollup merge of #70284 - lcnr:issue70273-what-the-heck-git, r=eddybMazdak Farrokhzad-0/+54
correctly handle const params in type_of extends #70223, retry of #70276 fixes #70273 r? @eddyb cc @varkor
2020-03-24Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, r=petrochenkovMazdak Farrokhzad-37/+292
Store idents for `DefPathData` into crate metadata Previously, we threw away the `Span` associated with a definition's identifier when we encoded crate metadata, causing us to lose location and hygiene information. We now store the identifier's `Span` in a side table, which gets encoded into the crate metadata. When we decode items from the metadata, we combine the name and span back into an `Ident`. This improves the output of several tests, which previously had messages suppressed due to dummy spans. This is a prerequisite for #68686, since throwing away a `Span` means that we lose hygiene information.
2020-03-24Rollup merge of #70074 - Centril:unpanictry, r=petrochenkovMazdak Farrokhzad-59/+359
Expand: nix all fatal errors Basically, we go after all `.span_fatal` / `FatalError.raise()` and similar things and remove them one by one until there are no fatal errors left. r? @petrochenkov
2020-03-24Rollup merge of #68884 - Zoxc:gen-type, r=nikomatsakisMazdak Farrokhzad-89/+224
Make the `type_of` return a generic type for generators Fixes https://github.com/rust-lang/rust/issues/67651. r? @nikomatsakis
2020-03-24pacify missing sysroot spans issueMazdak Farrokhzad-4/+9
2020-03-24fix rebase fallout due to #69497.Mazdak Farrokhzad-10/+25
2020-03-24fix rebase falloutMazdak Farrokhzad-0/+2
2020-03-24expand: address review commentsMazdak Farrokhzad-46/+53
2020-03-24expand: add recovery for parse_ntMazdak Farrokhzad-0/+44
2020-03-24defatalize expand_test_or_benchMazdak Farrokhzad-2/+18
2020-03-24defatalize `compile_declarative_macro`Mazdak Farrokhzad-0/+22
2020-03-24mbe::transcribe: defatalize errors.Mazdak Farrokhzad-8/+46
2020-03-24defatalize ProcMacroDerive::expandMazdak Farrokhzad-13/+36
Also remove ExtCtxt::struct_span_fatal.
2020-03-24defatalize BangProcMacro::expandMazdak Farrokhzad-6/+25
2020-03-24generic_extension: defatalize Error caseMazdak Farrokhzad-8/+27
2020-03-24nix panictry! in ParserAnyMacro::makeMazdak Farrokhzad-16/+106
2020-03-24Rollup merge of #70294 - estebank:bad-placeholder-in-where, r=CentrilMazdak Farrokhzad-55/+158
Account for bad placeholder types in where clauses Fix #70291. Follow up to #69148.
2020-03-24Rollup merge of #70283 - CDirkx:regression-test-70155, r=oli-obkMazdak Farrokhzad-0/+30
Add regression test for #70155. With #70166 merged, `RangeInclusive` now derives `PartialEq` and `Eq`, implementing structural equality and as a side effect the range is now usable with const generics, closing #70155. As per [#70166 (comment)](https://github.com/rust-lang/rust/pull/70166#issuecomment-601872201) a test is added to avoid a change to the private fields or the equality implementation of the range from subtly reverting #70155.
2020-03-24Rollup merge of #70277 - matthewjasper:remove-closurebound, r=nikomatsakisMazdak Farrokhzad-14/+14
Remove `ReClosureBound` We now substitute external names for regions in the query response. r? @nikomatsakis
2020-03-24Rollup merge of #70264 - tirr-c:issue-69789-mut-suggestion, r=estebankMazdak Farrokhzad-0/+23
Fix invalid suggestion on `&mut` iterators yielding `&` references Fixes #69789. rustc suggested an invalid code when `&` reference from `&mut` iterator is mutated. The compiler knew we're mutating a value behind `&` reference, but as the assignment RHS is from desugaring, it could only see the iterator expression from source and inserted `mut` there. r? @estebank