about summary refs log tree commit diff
path: root/src/test/ui/generator
AgeCommit message (Collapse)AuthorLines
2020-02-04Update error message with too many parametersJonas Schievink-2/+3
2020-02-04Add more tests for generator resume argumentsJonas Schievink-0/+67
2020-02-03Fix miscompilationJonas Schievink-0/+45
2020-02-02Teach dropck about resume argumentsJonas Schievink-3/+52
2020-02-02Add test for E0628 (too many generator parameters)Jonas Schievink-0/+15
2020-02-02Add tests for generator resume argumentsJonas Schievink-0/+135
2020-02-02Fix error message on type mismatch in generatorJonas Schievink-0/+41
Instead of "closure is expected to take 0 arguments" we now get the expected type mismatch error.
2020-02-02Adjust tests to type inference changesJonas Schievink-18/+49
This makes some error messages ungreat, but those seem to be preexisting bugs that also apply to closures / return position `impl Trait` in general.
2020-02-02Add a resume type parameter to `Generator`Jonas Schievink-67/+70
2020-02-02Auto merge of #68672 - jonas-schievink:dedup-witness, r=Zoxcbors-1/+1
Deduplicate types in the generator witness For the `await-call-tree` benchmark this often reduces the types inside the witness from 12 to 2.
2020-02-01Deduplicate generator interior typesJonas Schievink-1/+1
2020-01-31Auto merge of #68080 - varkor:declared-here, r=petrochenkovbors-1/+1
Address inconsistency in using "is" with "declared here" "is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout. r? @Centril
2020-01-24Normalise diagnostics with respect to "the X is declared/defined here"varkor-1/+1
2020-01-23Make pointers to statics internalMatthew Jasper-0/+29
2020-01-15wrap expr id into GeneratorInteriorTypeCausecsmoe-1/+1
2020-01-09Address review comments + Update NLL testsVadim Petrochenkov-3/+3
2020-01-09Update testsVadim Petrochenkov-2/+28
2019-12-23Yield is an expression form, not a statement.Donough Liu-6/+9
2019-12-08async/await: more improvements to non-send errorsDavid Wood-5/+12
Signed-off-by: David Wood <david@davidtw.co>
2019-11-26Record temporary static references in generator witnessesMatthew Jasper-0/+16
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-1/+1
2019-11-04Use check-pass in ui tests where appropriateTomasz Miąsko-2/+2
2019-10-25Re-enable Emscripten's exception handling supportThomas Lively-3/+3
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-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-3/+5
- 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-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-5/+3
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichtonbors-3/+5
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-04Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-3/+5
- 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-02Calculate liveness for the same locals with and without -ZpoloniusMatthew Jasper-20/+0
This fixes some test differences and also avoids overflow in issue-38591.rs.
2019-09-27lowering: don't .abort_if_errors()Mazdak Farrokhzad-1/+15
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-3/+3
2019-09-19When possible point at argument causing item obligation failureEsteban Küber-2/+2
2019-09-16Tweak unsatisfied HRTB errorsEsteban Küber-6/+12
2019-09-06Fixed grammar/style in error messages and reblessed tests.Alexander Regueiro-9/+9
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-16/+9
2019-08-27Changing error messages and renaming tests #63127Kevin Per-1/+1
`async-await/no-args-non-move-async-closure` `generator/no-arguments-on-generators`
2019-08-27Cleanup: Consistently use `Param` instead of `Arg` #62426Kevin Per-2/+2
2019-08-20Remove async_await gates from tests.Mazdak Farrokhzad-2/+1
2019-08-14move test that shouldn't be in test/run-pass/Mazdak Farrokhzad-0/+19
2019-08-06Rollup merge of #63230 - tmandry:disallow-possibly-uninitialized, r=CentrilMazdak Farrokhzad-0/+67
Make use of possibly uninitialized data [E0381] a hard error This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see #60889, discussion at #63035), so tests are included for that. cc #54987 --- I'm not sure if bypassing the buffer is a good way of doing this. We could also make a `force_errors_buffer` or similar that gets recombined with all the errors as they are emitted. But this is simpler and seems fine to me. r? @Centril cc @cramertj @nikomatsakis @pnkfelix @RalfJung
2019-08-05Make use of possibly uninitialized data a hard errorTyler Mandry-0/+67
This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see discussion at #63035), so tests are included for that.
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+1109
2019-07-22Bless output of test generator/ref-escapes-but-not-over-yield.rs for Poloniuslqd-0/+20
2019-07-17Test case for #62506.Giles Cope-0/+18
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-2/+2
2019-06-25Use `as_temp` to evaluate statement expressionsMatthew Jasper-0/+32
2019-05-24Move async/await tests to test/ui/async-awaitvarkor-30/+0
2019-05-12Remove feature(nll) when compare mode is sufficientMatthew Jasper-9/+3
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-0/+41
2019-05-07Auto merge of #60586 - cramertj:await, r=oli-obkbors-12/+12
Implement built-in await syntax Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature. This new syntax is not final, but is the consensus solution proposed by the lang team, as explained in https://boats.gitlab.io/blog/post/await-decision/ Fix https://github.com/rust-lang/rust/issues/51719 Fix https://github.com/rust-lang/rust/issues/51751 Fix https://github.com/rust-lang/rust/issues/60016