about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-03-21Auto merge of #58981 - estebank:elseless-if, r=davidtwcobors-1/+9
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-20Update testsvarkor-2/+2
2019-03-18Auto merge of #58872 - rep-nop:diagnostic-fix-56031, r=petrochenkovbors-0/+14
Adds help message in error for invalid `impl for T` syntax Fixes #56031.
2019-03-17Auto merge of #59250 - bovinebuddha:filter_ui_revision_tests, r=petrochenkovbors-48/+48
Filter ui revision tests Updates UI test output filtering to also filter away test annotations for revisions: Previously filtered: //~ ERROR [XXXX] Now also filters: //[revision]~ ERROR [XXXX] I reckon, if we have the one, we should have the other for consistency, its lack was probably an oversight (the existence of revision testing is not really well documented...)
2019-03-17Updated UI test output to remove test annotations for revisionsMathias Blikstad-48/+48
2019-03-16parse full visibility when recoveringEsteban Küber-2/+10
2019-03-16Recover from incorrect `pub` kw in "reasonable" placesEsteban Küber-24/+4
2019-03-16Recover from missing comma between enum variantsEsteban Küber-12/+21
2019-03-16use the identifier span for missing struct fieldAndy Russell-5/+5
2019-03-16Rollup merge of #59118 - seanmonstar:alias-where-self-ice, r=alexregkennytm-0/+25
rustc: fix ICE when trait alias has bare Self Fixes https://github.com/rust-lang/rust/issues/59029
2019-03-16Rollup merge of #59079 - euclio:macro-semi, r=estebankkennytm-2/+10
add suggestions to invalid macro item error r? @estebank
2019-03-16fix testsGrigorii Kargin-6/+6
2019-03-15Elide object safety errors on non-existent trait functionEsteban Küber-0/+33
Fix #58734.
2019-03-15rustc: print ExistentialProjection with spaces around `=`, e.g. `dyn Foo<A = ↵Eduard-Mihai Burtescu-7/+7
X>`.
2019-03-15rustc: provide DisambiguatedDefPathData in ty::print.Eduard-Mihai Burtescu-14/+14
2019-03-15rustc: print elided regions as '_ instead of nothing, and use a separate ↵Eduard-Mihai Burtescu-2/+2
check when optional.
2019-03-15rustc_mir: adjust the type_length_limit diagnostic to be more useful.Eduard-Mihai Burtescu-3/+3
2019-03-15rustc: pass Option<&Substs> and Namespace around in ty::item_path.Eduard-Mihai Burtescu-9/+9
2019-03-15rustc: always rely on '_ to be not printed by ty::Region itself.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: support impl's in PrintCx::parameterized.Eduard-Mihai Burtescu-7/+7
2019-03-14Auto merge of #59120 - alexreg:move-issue-tests-1, r=varkorbors-8/+245
Moved issue tests to subdirs and normalised names Consistency, decluttering, ease of navigation :-) r? @Centril
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-8/+245
2019-03-13add suggestions to invalid macro item errorAndy Russell-2/+10
2019-03-12rustc: fix ICE when trait alias has bare SelfSean McArthur-0/+25
2019-03-12Remove compiletest comments from testsvarkor-2/+2
2019-03-12Add NLL test error outputvarkor-0/+11
2019-03-12Update test for issue #55731varkor-3/+2
2019-03-12Add a test for #57781varkor-0/+20
2019-03-12Add a test for #55731varkor-0/+64
2019-03-12Add a test for #46101varkor-0/+18
2019-03-12Add a test for #44255varkor-0/+29
2019-03-12Add a test for #44127varkor-0/+17
2019-03-12Add a test for #26619varkor-0/+36
2019-03-12Add tests for #26448varkor-0/+59
2019-03-12Auto merge of #58608 - ↵bors-59/+0
pnkfelix:warning-period-for-detecting-nested-impl-trait, r=zoxc Warning period for detecting nested impl trait Here is some proposed code for making a warning period for the new checking of nested impl trait. It undoes some of the corrective effects of PR #57730, by using boolean flags to track parts of the analysis that were previously skipped prior to PRs #57730 and #57981 landing. Cc #57979
2019-03-11Update NLL testsVadim Petrochenkov-34/+34
2019-03-11Update testsVadim Petrochenkov-560/+560
2019-03-10Auto merge of #58498 - euclio:e0432-suggestions, r=estebankbors-7/+7
use structured suggestions for E0432
2019-03-09Rollup merge of #58679 - Zoxc:passes-refactor, r=michaelwoeristerMazdak Farrokhzad-4/+109
Refactor passes and pass execution to be more parallel For `syntex_syntax` (with 16 threads and 8 cores): - Cuts `misc checking 1` from `0.096s` to `0.08325s`. - Cuts `misc checking 2` from `0.3575s` to `0.2545s`. - Cuts `misc checking 3` from `0.34625s` to `0.21375s`. - Cuts `wf checking` from `0.3085s` to `0.05025s`. Reduces overall execution time for `syntex_syntax` (with 8 threads and cores) from `4.92s` to `4.34s`. Subsumes https://github.com/rust-lang/rust/pull/58494 Blocked on https://github.com/rust-lang/rust/pull/58250 r? @michaelwoerister
2019-03-09use structured suggestions for E0432Andy Russell-7/+7
2019-03-09Auto merge of #59012 - pietroalbini:rollup, r=pietroalbinibors-0/+60
Rollup of 24 pull requests Successful merges: - #58080 (Add FreeBSD armv6 and armv7 targets) - #58204 (On return type `impl Trait` for block with no expr point at last semi) - #58269 (Add librustc and libsyntax to rust-src distribution.) - #58369 (Make the Entry API of HashMap<K, V> Sync and Send) - #58861 (Expand where negative supertrait specific error is shown) - #58877 (Suggest removal of `&` when borrowing macro and appropriate) - #58883 (Suggest appropriate code for unused field when destructuring pattern) - #58891 (Remove stray ` in the docs for the FromIterator implementation for Option) - #58893 (race condition in thread local storage example) - #58906 (Monomorphize generator field types for debuginfo) - #58911 (Regression test for #58435.) - #58912 (Regression test for #58813) - #58916 (Fix release note problems noticed after merging.) - #58918 (Regression test added for an async ICE.) - #58921 (Add an explicit test for issue #50582) - #58926 (Make the lifetime parameters of tcx consistent.) - #58931 (Elide invalid method receiver error when it contains TyErr) - #58940 (Remove JSBackend from config.toml) - #58950 (Add self to mailmap) - #58961 (On incorrect cfg literal/identifier, point at the right span) - #58963 (libstd: implement Error::source for io::Error) - #58970 (delay_span_bug in wfcheck's ty.lift_to_tcx unwrap) - #58984 (Teach `-Z treat-err-as-bug` to take a number of errors to emit) - #59007 (Add a test for invalid const arguments) Failed merges: - #58959 (Add release notes for PR #56243) r? @ghost
2019-03-08Unit (and regression) tests for warning cycle code.Felix S. Klock II-59/+0
2019-03-08Rollup merge of #58931 - estebank:elide-receiver-tyerr, r=varkorPietro Albini-0/+30
Elide invalid method receiver error when it contains TyErr Fix #58712.
2019-03-08Rollup merge of #58921 - cuviper:issue-50582, r=varkorPietro Albini-0/+15
Add an explicit test for issue #50582 This code no longer ICEs, and @yodaldevoid found that it was fixed by commit fe5710a. While that added a similar test, we can explicitly test this reproducer too. Closes #50582.
2019-03-08Rollup merge of #58861 - estebank:fix-negative-traits, r=petrochenkovPietro Albini-0/+15
Expand where negative supertrait specific error is shown Fix #58857. r? @petrochenkov
2019-03-07Add more details to elseless if errorEsteban Küber-1/+5
2019-03-07address review commentsEsteban Küber-2/+4
2019-03-08Improve recovery for missing trait in a trait implVadim Petrochenkov-5/+4
2019-03-07Point at coercion reason for if exprs without else clauseEsteban Küber-0/+2
``` 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-0/+15