about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
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
2019-10-13Bring attention to suggestions when the only difference is capitalizationEsteban Küber-5/+5
2019-10-14Add test for issue-47486Yuki Okushi-0/+23
2019-10-13Update ui testsGuillaume Gomez-0/+6
2019-10-13Rollup merge of #65248 - estebank:mention-if-let, r=cramertjMazdak Farrokhzad-0/+7
Suggest `if let` on `let` refutable binding Fix #58385.
2019-10-11Rollup merge of #65289 - varkor:issue-65284, r=estebankTyler Mandry-0/+26
Fix suggested bound addition diagnostic Fixes #65284.
2019-10-11Rollup merge of #65191 - varkor:const-generics-test-cases, r=nikomatsakisTyler Mandry-0/+175
Add some regression tests - Add a test for #62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes #64792. - Closes #57399. - Closes #57271.
2019-10-11Print lifetimes with backticksYuki Okushi-19/+19
2019-10-11Fix issue 65284varkor-0/+26
2019-10-09Suggest `if let` on `let` refutable bindingEsteban Küber-0/+7
2019-10-08Rollup merge of #65145 - estebank:turbofish-assoc-fn-call, r=varkorMazdak Farrokhzad-1/+1
When suggesting assoc function with type params, include turbofish Fix https://github.com/rust-lang/rust/issues/61412, fix https://github.com/rust-lang/rust/issues/61411.
2019-10-07Add a regression test for #57271varkor-0/+60
2019-10-07Add a regression test for #57399varkor-0/+30
2019-10-07Add regression test for #64792varkor-0/+20
2019-10-07Move stray issue tests into src/test/ui/issuesvarkor-0/+65
2019-10-07update ui testsGuillaume Gomez-1/+6
2019-10-06Auto merge of #65043 - Aaron1011:fix/reexport-determinism, r=petrochenkovbors-1/+1
Make re-export collection deterministic Fixes https://github.com/rust-lang/rust/issues/65036 Previously, we were using an `FxHashMap` to collect module re-exports. However, re-exports end up getting serialized into crate metadata, which means that metadata generation was non-deterministic. This resulted in spurious error messages changes (e.g. PR #64906) due to pretty-printing implicitly depending on the order of re-exports when computing the proper path to show to the user. See #65042 for a long-term strategy to detect this kind of issue
2019-10-05Rollup merge of #65151 - tmandry:revert-emscripten-upgrade, r=tmandryTyler Mandry-18/+5
Revert #63649 - "Upgrade Emscripten targets to use upstream LLVM backend" This change caused the runtime of the linux-asmjs builder to nearly double from 2+ hours to about 4 hours, which happens to be the bors timeout. (It made it in barely under 4 hours when it was merged.) This is causing timeouts on all new changes. This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-05Rollup merge of #65011 - estebank:ice-o-matic, r=zackmdavisTyler Mandry-0/+34
Do not ICE when dereferencing non-Copy raw pointer CC #52262. Confirmed to remove the unnecessary ICE, but without a repro case.
2019-10-05Rollup merge of #64708 - SimonSapin:option-deref, r=CentrilTyler Mandry-6/+2
Stabilize `Option::as_deref` and `Option::as_deref_mut` The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-18/+5
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-05Account for derefs when suggesting assoc functionEsteban Küber-1/+1
2019-10-05Remove `for_each_child_stable`Aaron Hill-1/+1
Now that `Resolutions` has a deterministic iteration order, it's no longer necessary to sort its entries before iterating over them