about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-04-16Auto merge of #59769 - RalfJung:compiletest-normalization, r=alexcrichtonbors-0/+12
compiletest normalization: preserve non-JSON lines such as ICEs Currently, every non-JSON line from stderr gets normalized away when compiletest normalizes the output. In particular, ICEs get normalized to the empty output. That does not seem desirable, so this changes normalization to preserve non-JSON lines instead. Also see https://github.com/laumann/compiletest-rs/issues/169: because of that bug, Miri currently *looks* green in the toolstate, but some tests ICE. That same bug is likely no longer present in latest compiletest because the error code gets checked separately, but it still seems like a good idea to also make sure that ICEs are considered stderr output: This change found an accidental user-visible `error!` in CTFE validation (fixed), and a non-deterministic panic when there are two `main` symbols (not fixed, no idea where this comes from). Both got missed before because non-JSON output got ignored.
2019-04-16lint: convert incoherent_fundamental_impls into hard errorHoàng Đức Hiếu-5/+2
Also remove it from lint listings.
2019-04-14Rollup merge of #59896 - estebank:dedup-spans, r=davidtwcoMazdak Farrokhzad-0/+27
Remove duplicated redundant spans Fix #59895.
2019-04-14some more tests need normalizationRalf Jung-0/+4
2019-04-14normalize away spurious errorRalf Jung-0/+8
2019-04-14Auto merge of #59798 - rchaser53:issue-59488, r=estebankbors-0/+107
Improvement for comparision against fn I try to add error message. related: https://github.com/rust-lang/rust/issues/59488
2019-04-12Add test and fix dedupEsteban Küber-0/+27
2019-04-12Rollup merge of #59862 - estebank:tweak-unstable-diag, r=petrochenkovMazdak Farrokhzad-12/+24
Tweak unstable diagnostic output
2019-04-12Rollup merge of #59859 - davidtwco:issue-59756, r=cramertjMazdak Farrokhzad-1/+4
Suggest removing `?` to resolve type errors. Fixes #59756.
2019-04-12Rollup merge of #59846 - euclio:not-a-module, r=davidtwcoMazdak Farrokhzad-10/+7
clarify what the item is in "not a module" error The motivation here was that I was trying to import an associated constant when I thought it was an enum variant, and got confused by this error. Ideally I would like to add a note saying that associated constants, types, and methods cannot be imported, but I'm not sure that the associated items for a `Def` can be checked at resolve time.
2019-04-12Rollup merge of #59781 - whitfin:issue-59378, r=oli-obkMazdak Farrokhzad-12/+3
Remove check_match from const_eval This fixes #59378. It seems that the `check_match` may be unnecessary, so this removes it per instructions provided in the issue. I re-ran the tests for `librustc_mir` and everything seemed fine!
2019-04-12add the logic for when other_ty is FnDefrchaser53-3/+47
2019-04-11Reword tracking issue noteEsteban Küber-12/+12
2019-04-12improve error messagesrchaser53-7/+37
2019-04-10Tweak unstable diagnostic outputEsteban Küber-12/+24
2019-04-10Suggest removing `?` to resolve type errors.David Wood-1/+4
This commit adds a suggestion to remove the `?` from expressions if removing the `?` would resolve a type error.
2019-04-10clarify what the item is in "not a module" errorAndy Russell-10/+7
2019-04-09improve unknown enum variant errorsAndy Russell-41/+36
2019-04-08Update test cases for changes to error messagesIsaac Whitfield-12/+3
2019-04-07Improvement for comparision against fnrchaser53-0/+33
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.