summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2019-05-20bless test outputPietro Albini-1/+1
2019-05-20disable the ui/const-generics/cannot-infer-type-for-const-param.rs testPietro Albini-0/+6
The test is failing on 1.35.0 stable but that's not important since the ICE happens only with the feature gate enabled, thus it doesn't affect stable. https://github.com/rust-lang/rust/pull/60710#issuecomment-493662676
2019-05-20Add a test for failed inference of const typesvarkor-0/+26
2019-05-20Add a test for invalid const argumentsvarkor-0/+34
2019-05-18bless ui testsPietro Albini-1/+2
2019-05-18Instead of ICEing on incorrect pattern, use delay_span_bugEsteban Küber-0/+25
2019-05-18Use `delay_span_bug` for "Failed to unify obligation"Esteban Küber-0/+51
2019-05-14Appease tidyIgor Matuszewski-2/+2
2019-05-14save-analysis: Add UI testsuiteIgor Matuszewski-0/+42
2019-04-10Update ui testLzu Tao-1/+1
2019-04-07Only run SIMD tests on x86Oliver Scherer-3/+9
2019-04-07Add more regression tests for accidental promotionOliver Scherer-0/+37
2019-04-07Function arguments should never get promotedOliver Scherer-0/+18
2019-04-07Auto merge of #58739 - matthewjasper:more-restrictive-tpb, r=pnkfelixbors-156/+318
More restrictive 2 phase borrows - take 2 Signal lint diagnostic `mutable_borrow_reservation_conflict` when borrow-check finds a 2-phase borrow's reservation overlapping with a shared borrow. (pnkfelix updated description) cc #56254 , #59159 blocks PR #59114 r? @pnkfelix cc @RalfJung @nikomatsakis
2019-04-05Auto merge of #59500 - crlf0710:boxed-closure-impls, r=cramertjbors-75/+43
Unsized rvalues: implement boxed closure impls. (2nd try) This is a rebase of S-blocked-closed PR #55431 to current master. LLVM has moved forward since then, so maybe we can check whether the new LLVM 8.0 version unblocked this work.
2019-04-05Include trailing comma in multiline Debug representationDavid Tolnay-168/+168
This commit changes the behavior of Formatter::debug_struct, debug_tuple, debug_list, debug_set, and debug_map to render trailing commas in {:#?} mode, which is the dominant style in modern Rust code. Before: Language { name: "Rust", trailing_commas: false } After: Language { name: "Rust", trailing_commas: true, }
2019-04-05Fix expectations on some ui test in nll compare mode.Charles Lew-5/+3
2019-04-05Remove FnBox specialization of impl FnOnce for Box<impl FnOnce>.Masaki Hara-24/+0
2019-04-05Fix failing tests.Masaki Hara-24/+9
2019-04-05Fix expectations on some ui tests involving FnOnce.Masaki Hara-72/+42
2019-04-05Add tests for boxed_closure_impls.Masaki Hara-0/+39
2019-04-04Adjust the mutable_borrow_reservation_conflict messageMatthew Jasper-8/+8
We aren't sure if this will become an error or not yet.
2019-04-04unit test for the lint itself, illustrating that it can be controlled by ↵Felix S. Klock II-0/+83
`#[allow(..)]` etc.
2019-04-04update unit test output to reflect change to lint-based diagnostic.Felix S. Klock II-10/+12
2019-04-04Update tests for restrictive two-phase borrowsMatthew Jasper-124/+1
2019-04-04Treat two-phase borrow reservations as mutable accessesMatthew Jasper-33/+233
2019-04-04Auto merge of #59517 - Zoxc:new-queries, r=oli-obkbors-109/+109
Move query definitions over to the proc macro r? @oli-obk
2019-04-02Rollup merge of #59166 - seanmonstar:trait-alias-import, r=alexregMazdak Farrokhzad-0/+44
resolve: collect trait aliases along with traits It seems trait aliases weren't being collected as `TraitCandidates` in resolve, this should change that. (I can't compile the full compiler locally, so relying on CI...) Fixes https://github.com/rust-lang/rust/issues/56485 r? @alexreg
2019-04-01Refactor async fn return type loweringTaylor Cramer-26/+81
async fn now lowers directly to an existential type declaration rather than reusing the `impl Trait` return type lowering. As part of this, it lowers all argument-position elided lifetimes using the in-band-lifetimes machinery, creating fresh parameter names for each of them, using each lifetime parameter as a generic argument to the generated existential type. This doesn't currently successfully allow multiple argument-position elided lifetimes since `existential type` doesn't yet support multiple lifetimes where neither outlive the other. This requires a separate fix.
2019-04-01resolve all in scope trait aliases, then elaborate their boundsSean McArthur-0/+44
2019-04-01Rollup merge of #59041 - saleemjaffer:trait_doc_comment_better_error_msg, ↵Mazdak Farrokhzad-0/+17
r=pnkfelix fixes rust-lang#56766 fixes #56766
2019-04-01Rollup merge of #58919 - estebank:impl-trait-return-lifetime, r=pnkfelixMazdak Farrokhzad-11/+21
Suggest using anonymous lifetime in `impl Trait` return Fix #48467. r? @nikomatsakis
2019-03-31Rollup merge of #58805 - fabric-and-ink:redundant_import, r=petrochenkovMazdak Farrokhzad-11/+90
Lint for redundant imports Add lint for redundant imports. The changes are suggested by @petrochenkov. Closes #10178.
2019-03-31Suggest using anonymous lifetime in `impl Trait` return without hacksEsteban Küber-14/+18
Fallback to `static_impl_trait` for nice error message by peeking at the return type and the lifetime type. Point at the return type instead of the return expr/stmt in NLL mode.
2019-03-31Rollup merge of #59574 - JohnTitor:distinguish-error-vs-warning, r=CentrilMazdak Farrokhzad-2/+2
Distinguish message for external macros depending on error level fixes #57716 (I picked you because assigned to this issue.) r? @estebank
2019-03-31Rollup merge of #59572 - davidtwco:issue-59508, r=varkorMazdak Farrokhzad-13/+85
Include bounds in generic re-ordering diagnostic Fixes #59508. r? @estebank cc @varkor
2019-03-31Only mention const generics if enabled.David Wood-14/+46
This commit updates the generic parameter re-ordering diagnostic to only mention const generics if the feature is enabled.
2019-03-31Include bounds in generic reordering diagnostic.David Wood-0/+40
This commit extends the existing generic re-ordering diagnostic to include any bounds on the generic parameter, thus producing correct suggestions.
2019-03-31Distinguish depending on error levelYuki OKUSHI-2/+2
Remove unnecessary comment
2019-03-30Handle glob import in redundancy checkFabian Drinck-9/+0
2019-03-30Change message to present tenseFabian Drinck-4/+4
2019-03-30Add glob import to redundancy testFabian Drinck-6/+36
2019-03-30Fix testsFabian Drinck-5/+13
2019-03-30Replace REDUNDANT_IMPORT with UNUSED_IMPORTSFabian Drinck-63/+14
2019-03-30Edit ui testsFabian Drinck-0/+2
2019-03-30Distinguish between imported and defined itemsFabian Drinck-1/+1
2019-03-30Bless testsFabian Drinck-0/+69
2019-03-30Improve warningFabian Drinck-7/+4
2019-03-30Add lint for redundant importsFabian Drinck-0/+31
Co-authored-by: Stephan Schauerte <stephan.schauerte@gmail.com>
2019-03-30Update testsJohn Kåre Alsaker-109/+109