about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-11-04Use build-pass in ui tests where appropriateTomasz Miąsko-48/+48
2019-11-04Use run-pass for ui tests where appropriateTomasz Miąsko-2/+2
2019-11-04Remove no longer useful ui testTomasz Miąsko-4/+0
2019-11-04Auto merge of #65838 - estebank:resilient-recovery, r=Centrilbors-16/+3
Reduce amount of errors given unclosed delimiter When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it on a more granular way in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace. Fix #63690.
2019-11-02Update error annotations in tests that successfully compileTomasz Miąsko-1/+0
Those annotation are silently ignored rather than begin validated against compiler output. Update them before validation is enabled, to avoid test failures.
2019-10-31Fix incorrect diagnostics for expected type in E0271 with an associated typeOhad Ravid-3/+3
2019-10-30Reduce ammount of errors given unclosed delimiterEsteban Küber-16/+3
When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace.
2019-10-29Rollup merge of #65832 - tlively:emscripten-exception-handling, r=alexcrichtonTyler Mandry-4/+4
Re-enable Emscripten's exception handling support Passes LLVM codegen and Emscripten link-time flags for exception handling if and only if the panic strategy is `unwind`. Sets the default panic strategy for Emscripten targets to `unwind`. Re-enables tests that depend on unwinding support for Emscripten, including `should_panic` tests. r? @alexcrichton
2019-10-29Rollup merge of #65562 - Patryk27:master, r=estebankMazdak Farrokhzad-4/+4
Improve the "try using a variant of the expected type" hint. Fix https://github.com/rust-lang/rust/issues/65494. - Change type-printing output. - Use `span_to_snippet` when possible. - Change the message to `try using a variant of the expected enum`
2019-10-29Rollup merge of #65318 - estebank:coherence, r=varkorMazdak Farrokhzad-2/+2
Call out the types that are non local on E0117 CC #24745.
2019-10-29Rollup merge of #65294 - varkor:lint-inline-prototype, r=matthewjasperMazdak Farrokhzad-0/+8
Lint ignored `#[inline]` on function prototypes Fixes https://github.com/rust-lang/rust/issues/51280. - Adds a `unused_attribute` lint for `#[inline]` on function prototypes. - As a consequence, foreign items, impl items and trait items now have their attributes checked, which could cause some code to no longer compile (it was previously erroneously ignored).
2019-10-28Rollup merge of #65640 - estebank:recover-missing-semi, r=CentrilMazdak Farrokhzad-1/+1
Use heuristics to recover parsing of missing `;` - Detect `,` and `:` typos where `;` was intended. - When the next token could have been the start of a new statement, detect a missing semicolon. Fix #48160, fix #44767 (after adding note about statements).
2019-10-28Tweak unexpected token wordingEsteban Küber-1/+1
2019-10-28Improve the "try using a variant of the expected type" hint.Patryk Wychowaniec-4/+4
2019-10-28Use more targeted spans for orphan rule errorsEsteban Küber-2/+2
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-65/+96
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27Auto merge of #65288 - estebank:point-at-assoc-type, r=nikomatsakisbors-6/+12
Point at associated type for some obligations Partially address #57663.
2019-10-26Rollup merge of #65773 - estebank:sugg-whitespace, r=CentrilMazdak Farrokhzad-0/+46
Increase spacing for suggestions in diagnostics Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages. r? @Centril
2019-10-25Emit warning for ignored #[inline] on trait method prototypesvarkor-0/+8
2019-10-25Re-enable Emscripten's exception handling supportThomas Lively-4/+4
Passes LLVM codegen and Emscripten link-time flags for exception handling if and only if the panic strategy is `unwind`. Sets the default panic strategy for Emscripten targets to `unwind`. Re-enables tests that depend on unwinding support for Emscripten, including `should_panic` tests.
2019-10-25Rollup merge of #65390 - GuillaumeGomez:long-err-explanation-E0576, ↵Mazdak Farrokhzad-0/+3
r=matthewjasper,kinnison Add long error explanation for E0576 Part of #61137.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+46
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-24Avoid ICE when adjusting bad self tyEsteban Küber-0/+81
2019-10-23Auto merge of #57545 - bovinebuddha:object_safe_for_dispatch, r=nikomatsakisbors-0/+3
Object safe for dispatch cc #43561
2019-10-23Update ui testsGuillaume Gomez-0/+3
2019-10-22Fix rebaseEsteban Küber-5/+4
2019-10-22review comments: move code, fix indentation and change spanEsteban Küber-8/+8
2019-10-22Point at associated type for some obligationsEsteban Küber-7/+14
2019-10-22RFC 2027: "first draft" of implementationMathias Blikstad-0/+3
These are a squashed series of commits.
2019-10-20Rollup merge of #65602 - varkor:other-candidates, r=CentrilMazdak Farrokhzad-2/+2
Fix plural mistake in emitter.rs
2019-10-19Fix plural mistake in emitter.rsvarkor-2/+2
2019-10-19Rollup merge of #65192 - estebank:restrict-bound, r=matthewjasperMazdak Farrokhzad-17/+20
Use structured suggestion for restricting bounds When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`. Fix #64565, fix #41817, fix #24354, cc #26026, cc #37808, cc #24159, fix #37138, fix #24354, cc #20671.
2019-10-19Rollup merge of #64007 - estebank:overlapping-patterns, r=matthewjasperMazdak Farrokhzad-2/+3
Add check for overlapping ranges to unreachable patterns lint Fix #63987.
2019-10-18[const-prop] Handle MIR Rvalue::AggregatesWesley Wiser-2/+16
2019-10-17Auto merge of #65251 - tlively:emscripten-upstream-upgrade, r=tlivelybors-5/+18
Upgrade Emscripten targets to use upstream LLVM backend - Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649. r? @alexcrichton
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-5/+18
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-16Lint only on single element overlapEsteban Küber-2/+0
2019-10-16Only emit overlapping patterns lint if the overlap is partialEsteban Küber-1/+4
2019-10-16update ui testsGuillaume Gomez-1/+4
2019-10-15Rollup merge of #65438 - Centril:almost, r=varkorTyler Mandry-91/+0
Organize `never_type` tests Extracted from https://github.com/rust-lang/rust/pull/65355. This just moves some tests around to make things better categorized. r? @varkor
2019-10-15Rollup merge of #65308 - GuillaumeGomez:long-err-explanation-E0574, ↵Tyler Mandry-0/+6
r=matthewjasper Add long error explanation for E0574 Part of #61137.
2019-10-15Do not suggest restriction on spans originating in macrosEsteban Küber-3/+1
2019-10-15Suggest associated bound restrictions in `impl`sEsteban Küber-2/+3
2019-10-15Handle missing projection restrictionEsteban Küber-3/+5
2019-10-15Handle `Self` restriction neededEsteban Küber-3/+4
2019-10-15Handle more casesEsteban Küber-10/+11
2019-10-15Organize `never_type` testsMazdak Farrokhzad-91/+0
Also move {run-fail -> ui}/never_type
2019-10-14Rollup merge of #65398 - estebank:capitalization-only, r=varkorTyler Mandry-5/+5
Bring attention to suggestions when the only difference is capitalization CC #65386.
2019-10-14Rollup merge of #65395 - JohnTitor:add-tests, r=CentrilMazdak Farrokhzad-0/+23
Add some tests for fixed ICEs Fixes #44153 (from 1.23.0) Fixes #47486 (from 1.36.0) Fixes #48010 (from 1.38.0) Fixes #48027 (from nightly) Fixes #48638 (from nightly)
2019-10-14Rollup merge of #65292 - JohnTitor:add-backticks, r=varkor,CentrilMazdak Farrokhzad-19/+19
Print lifetimes with backticks Fixes #65287 r? @varkor