about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
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-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
2019-10-04Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichtonbors-5/+18
Upgrade Emscripten targets to use upstream LLVM backend - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the incorrect wasm32 C call ABI with the old asmjs version, which is correct for both wasm32 and JS. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Temporarily makes Emscripten targets use panic=abort by default because supporting unwinding will require an LLVM patch.
2019-10-04Add ignore-asmjs to new testThomas Lively-0/+1
2019-10-04Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-5/+17
- Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the incorrect wasm32 C call ABI with the old asmjs version, which is correct for both wasm32 and JS. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Temporarily makes Emscripten targets use panic=abort by default because supporting unwinding will require an LLVM patch.
2019-10-04Rollup merge of #64874 - matthewjasper:simplify-euv, r=eddybMazdak Farrokhzad-24/+18
Simplify ExprUseVisitor * Remove HIR const qualification * Remove parts of ExprUseVisitor that aren't being used r? @eddyb
2019-10-03Rollup merge of #65057 - mathstuf:fix-warning-typo, r=CentrilTyler Mandry-6/+6
typo: fix typo in E0392 See #64931. --- Cc: @Centril @estebank
2019-10-03Rollup merge of #64706 - nikomatsakis:issue-60218-test-case, r=centrilTyler Mandry-0/+34
add regression test for #60218 Fixes #60218
2019-10-03typo: fix typo in E0392Ben Boeckel-6/+6
See #64931.
2019-10-03add regression test for #60218Niko Matsakis-0/+34
2019-10-03Rollup merge of #64931 - estebank:missing-param-ref, r=matthewjasper,CentrilMazdak Farrokhzad-6/+6
Reword E0392 slightly Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. CC #53589.
2019-10-02review commentEsteban Küber-6/+6
2019-10-02Do not ICE when dereferencing non-Copy raw pointerEsteban Küber-0/+34
2019-10-02Rollup merge of #64973 - ecstatic-morse:fix-debuginfo-test, r=alexcrichtonMazdak Farrokhzad-2/+2
Fix typo while setting `compile-flags` in test This test is meant to check for an ICE when generating debug info, but didn't actually pass `-g` due to the typo. I also removed the `FIXME`, since this needs to actually be built (not just checked) to trigger the ICE.
2019-10-01Rollup merge of #64649 - estebank:returnator, r=varkorTyler Mandry-0/+14
Avoid ICE on return outside of fn with literal array Do not ICE when encountering `enum E { A = return [0][0] }`. Fix #64638.
2019-10-01This needs to be build-pass since it involves debuginfoDylan MacKenzie-1/+1
2019-10-01Fix typo passing flags to rustcDylan MacKenzie-1/+1
2019-10-01Rollup merge of #64928 - JohnTitor:add-some-tests, r=CentrilMazdak Farrokhzad-0/+125
Add tests for some issues Closes #50571 Closes #58022 Closes #58344
2019-09-30Avoid ICE on return outside of fn with literal arrayEsteban Küber-0/+14
Do not ICE when encountering `enum E { A = return [0][0] }`.
2019-09-30Reword E0392 slightlyEsteban Küber-6/+6
Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`.
2019-10-01Add test for #58344Yuki Okushi-0/+69
2019-10-01Add test for #58022Yuki Okushi-0/+37
2019-10-01Add test for #50571Yuki Okushi-0/+19
2019-09-30Remove HIR based const qualificationMatthew Jasper-24/+18
2019-09-30Fixed stylistic convention for one diagnostic and blessed tests.Alexander Regueiro-1/+1
2019-09-30Fixed grammar in one diagnostic and blessed tests.Alexander Regueiro-3/+3
2019-09-29Rollup merge of #64691 - estebank:unexpected-variant, r=CentrilMazdak Farrokhzad-2/+14
Point at definition when misusing ADT When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error.
2019-09-28Rollup merge of #64852 - Baranowski:param_note_52082, r=estebankMazdak Farrokhzad-0/+3
Print ParamTy span when accessing a field (#52082)