summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-05-18bless ui testsPietro Albini-1/+2
2019-05-18Use `delay_span_bug` for "Failed to unify obligation"Esteban Küber-0/+51
2019-04-01Refactor async fn return type loweringTaylor Cramer-0/+68
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-03-30Rollup merge of #59453 - estebank:recover-tuple-parse, r=petrochenkovMazdak Farrokhzad-4/+47
Recover from parse error in tuple syntax
2019-03-29Rollup merge of #59467 - hgallagher1993:local_branch, r=estebankMazdak Farrokhzad-50/+102
Better diagnostic for binary operation on BoxedValues Fixes #59458
2019-03-28Add check for when left and right overlap and change span for explanation to ↵hgallagher1993-8/+6
point at operator
2019-03-28Rollup merge of #59408 - euclio:compiletest-normalization, r=oli-obkMazdak Farrokhzad-1/+1
compiletest: make path normalization smarter Fixes #59109.
2019-03-28Recover from parse error in tuple syntaxEsteban Küber-4/+47
2019-03-27Rollup merge of #57565 - petrochenkov:turbowarn, r=CentrilJosh Stone-15/+3
syntax: Remove warning for unnecessary path disambiguators `rustfmt` is now stable and it removes unnecessary turbofishes, so removing the warning as discussed in https://github.com/rust-lang/rust/pull/43540 (where it was introduced). One hardcoded warning less. Closes https://github.com/rust-lang/rust/issues/58055 r? @nikomatsakis
2019-03-27Better diagnostic for binary operation on BoxedValueshgallagher1993-50/+104
2019-03-26Rollup merge of #59150 - estebank:type-ascription, r=varkorMazdak Farrokhzad-0/+34
Expand suggestions for type ascription parse errors Fix #51222. CC #48016, #47666, #54516, #34255.
2019-03-25Auto merge of #59242 - euclio:asm-ice, r=nagisabors-0/+27
make asm diagnostic instruction optional `DiagnosticInfoInlineAsm::getInstruction` may return a null pointer, so the instruction shouldn't be blindly unwrapped. Reopening from #55193. I was unable to trigger the assertion on Windows after rebasing. Fixes #23458. Fixes #55216.
2019-03-25Auto merge of #59240 - euclio:struct-field-span, r=oli-obkbors-5/+5
use the identifier span for missing struct field
2019-03-25compiletest: make path normalization smarterAndy Russell-1/+1
2019-03-24make asm diagnostic instruction optionalAndy Russell-0/+27
`DiagnosticInfoInlineAsm::getInstruction` may return a null pointer, so the instruction shouldn't be blindly unwrapped.
2019-03-24Auto merge of #59199 - estebank:untrack-errors, r=eddybbors-1/+5
Remove `track_errors` from `check_match`, `typeck_item_bodies` and `register_plugins` In the spirit of continuing through errors in type checking (#39275), remove `track_errors` from a couple of locations in the codebase.
2019-03-23Fix span after rebaseEsteban Küber-3/+1
2019-03-23Mark duplicate import removal suggestion tool onlyEsteban Küber-4/+0
2019-03-23Hide obvious suggestion from cli outputEsteban Küber-17/+7
2019-03-23Tweak unnecessary import suggestionEsteban Küber-16/+8
2019-03-23Tweak unsupported negative trait bounds messageEsteban Küber-1/+2
2019-03-23Swap const evaluation lint spans to point at problem in primary spanEsteban Küber-2/+2
2019-03-23Tweak spans for E0599Esteban Küber-56/+30
2019-03-23syntax: Remove warning for unnecessary path disambiguatorsVadim Petrochenkov-15/+3
2019-03-22Continue running after `typeck_item_bodies` has failedEsteban Küber-1/+5
2019-03-22Reword type ascription note to reduce verbosityEsteban Küber-12/+2
2019-03-22Review commentEsteban Küber-2/+2
2019-03-22Expand suggestions for type ascription parse errorsEsteban Küber-0/+44
2019-03-23Auto merge of #58929 - estebank:elide-object, r=zackmdavisbors-0/+33
Elide object safety errors on non-existent trait function Fix #58734. r? @zackmdavis
2019-03-22Rollup merge of #59321 - varkor:unify-E0109-E0110-E0111, r=davidtwcoMazdak Farrokhzad-2/+2
Unify E0109, E0110 and E0111 Error messages should no longer be restricted to specific generic kinds.
2019-03-22Rollup merge of #59190 - greg-kargin:master, r=sanxiynMazdak Farrokhzad-6/+6
consistent naming for Rhs type parameter in libcore/ops Rename RHS type parameter occurrences RHS->Rhs to make it consistent throughout files and follow naming conventions.
2019-03-22Auto merge of #59031 - estebank:recover-from-comaless, r=petrochenkovbors-17/+14
Recover from missing comma between enum variants and from bad `pub` kw Fix #56579. Fix #56473.
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