about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-03-06Emit missing unclosed delimiter errorsEsteban Küber-40/+37
2019-03-06Reduce test caseEsteban Küber-18/+4
2019-03-06Emit unclosed delimiters during recoveryEsteban Küber-1/+13
2019-03-06Bail when encountering a second unexpected token in the same spanEsteban Küber-74/+15
2019-03-06Do not panic on missing close parenEsteban Küber-0/+107
Fix #58856.
2019-03-06Surround found token with `Esteban Küber-2/+2
2019-03-06rust-lldb: fix crash when printing empty stringAndy Russell-0/+35
2019-03-06add test for spurious intra-doc link warningQuietMisdreavus-0/+18
2019-03-06Regression test for issue #58158.Felix S. Klock II-0/+40
2019-03-06Regression test for #58813Felix S. Klock II-0/+14
(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
2019-03-06Desugared asyncs into generators and minimised.Giles Cope-12/+13
2019-03-06Update testsJohn Kåre Alsaker-4/+109
2019-03-06Split up privacy checking so privacy_access_levels only does computations ↵John Kåre Alsaker-18/+18
required for AccessLevels
2019-03-05On incorrect cfg literal/identifier, point at the right spanEsteban Küber-2/+2
2019-03-05Fix negative integer literal testvarkor-19/+8
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-05Update test falloutvarkor-18/+4
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-05Update const generics testsvarkor-53/+30
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-05Add a test for HashStable stabilityJohn Kåre Alsaker-0/+63
2019-03-05Removed whitespaceGiles Cope-1/+1
2019-03-05Unrolled await macro.Giles Cope-6/+6
Was then able to the minimise the reproduction a little further.
2019-03-04Elide invalid method receiver error when it contains TyErrEsteban Küber-0/+30
Fix #58712.
2019-03-04Add an explicit test for issue #50582Josh Stone-0/+15
This code no longer ICEs, and @yodaldevoid found that it was fixed by commit fe5710a. While that added a similar test, we can explicitly test this reproducer too. Closes #50582.
2019-03-04On return type `impl Trait` for block with no expr point at last semiEsteban Küber-0/+20
2019-03-04Regression test added for an async ICE.Giles Cope-0/+27
2019-03-04Use bit operations for setting large ranges of bits in a u64Oliver Scherer-1/+1
2019-03-04Test the `UndefMask` typeOliver Scherer-0/+26
2019-03-04Regression test for #58435.Felix S. Klock II-0/+17
2019-03-04Make the Entry API of HashMap<K, V> Sync and Send (fixes #45219)Anthony Ramine-0/+1
2019-03-04Auto merge of #58380 - estebank:missing-match-pats, r=zackmdavisbors-67/+285
Point at enum definition when match patterns are not exhaustive ``` error[E0004]: non-exhaustive patterns: type `X` is non-empty --> file.rs:9:11 | 1 | / enum X { 2 | | A, | | - variant not covered 3 | | B, | | - variant not covered 4 | | C, | | - variant not covered 5 | | } | |_- `X` defined here ... 9 | match x { | ^ | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms error[E0004]: non-exhaustive patterns: `B` and `C` not covered --> file.rs:11:11 | 1 | / enum X { 2 | | A, 3 | | B, 4 | | C, | | - not covered 5 | | } | |_- `X` defined here ... 11 | match x { | ^ patterns `C` not covered ``` When a match expression doesn't have patterns covering every variant, point at the enum's definition span. On a best effort basis, point at the variant(s) that are missing. This does not handle the case when the missing pattern is due to a field's enum variants: ``` enum E1 { A, B, C, } enum E2 { A(E1), B, } fn foo() { match E2::A(E1::A) { E2::A(E1::B) => {} E2::B => {} } //~^ ERROR `E2::A(E1::A)` and `E2::A(E1::C)` not handled } ``` Unify look between match with no arms and match with some missing patterns. Fix #37518.
2019-03-03Add .nll.stderr outputTim-0/+39
2019-03-04Monomorphize generator field types for debuginfoWim Looman-0/+27
2019-03-03Use the correct state for poisoning a generatorMatthew Jasper-0/+22
2019-03-03Don't incorrectly mark blocks in generator drop shims as cleanupMatthew Jasper-0/+43
This also ensure that dropping a generator won't leak upvars if dropping one of them panics
2019-03-03Check which blocks are cleanup in mir-opt testsMatthew Jasper-20/+20
2019-03-03Auto merge of #58673 - matthewjasper:typeck-ptr-coercions, r=pnkfelixbors-0/+221
[NLL] Type check operations with pointer types It seems these were forgotten about. Moving to `Rvalue::AddressOf` simplifies the coercions from references, but I want this to be fixed as soon as possible. r? @pnkfelix
2019-03-03Auto merge of #58866 - kennytm:rollup, r=kennytmbors-1/+20
Rollup of 14 pull requests Successful merges: - #58730 (Have all methods of Filter and FilterMap use internal iteration) - #58780 (ManuallyDrop != MaybeUninit) - #58782 (Replace `s` with `self` in docs for str methods taking self.) - #58785 (allow specifying attributes for tool lints) - #58802 (Ensure `record_layout_for_printing()` is inlined.) - #58821 (Fixed a syntax error in the pin docs) - #58830 (tidy: deny(rust_2018_idioms)) - #58832 (Revert switching to GCP on AppVeyor) - #58833 (tools/rustbook: deny(rust_2018_idioms)) - #58835 (tools/remote-test-{client,server}: deny(rust_2018_idioms)) - #58838 (Fix typo in Vec#resize_with documentation) - #58842 (Forbid duplicating Cargo as a dependency) - #58852 (Update toolchain to build NetBSD release) - #58865 (Fix C-variadic function printing)
2019-03-03Rollup merge of #58865 - dlrobertson:fix-varargs, r=alexregkennytm-0/+15
Fix C-variadic function printing There is no longer a need to append the string `", ..."` to a functions args as `...` is parsed as an argument and will appear in the functions arguments. Fixes: #58853
2019-03-02Call clang and llvm-objdump with correct library pathMark Rousskov-6/+6
2019-03-03NitAlexander Regueiro-1/+1
2019-03-02Reword error messageEsteban Küber-1/+1
2019-03-02Point at enum definition when match patterns are not exhaustiveEsteban Küber-66/+284
``` error[E0004]: non-exhaustive patterns: type `X` is non-empty --> file.rs:9:11 | 1 | / enum X { 2 | | A, | | - variant not covered 3 | | B, | | - variant not covered 4 | | C, | | - variant not covered 5 | | } | |_- `X` defined here ... 9 | match x { | ^ | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms error[E0004]: non-exhaustive patterns: `B` and `C` not covered --> file.rs:11:11 | 1 | / enum X { 2 | | A, 3 | | B, 4 | | C, | | - not covered 5 | | } | |_- `X` defined here ... 11 | match x { | ^ patterns `C` not covered ``` When a match expression doesn't have patterns covering every variant, point at the enum's definition span. On a best effort basis, point at the variant(s) that are missing. This does not handle the case when the missing pattern is due to a field's enum variants: ``` enum E1 { A, B, C, } enum E2 { A(E1), B, } fn foo() { match E2::A(E1::A) { E2::A(E1::B) => {} E2::B => {} } //~^ ERROR `E2::A(E1::A)` and `E2::A(E1::C)` not handled } ``` Unify look between match with no arms and match with some missing patterns. Fix #37518.
2019-03-02Suggest appropriate code for unused field when desrtucturing pattternEsteban Küber-0/+40
Fix #56472.
2019-03-02Suggest removal of `&` when borrowing macro and appropriateEsteban Küber-3/+45
Fix #58815.
2019-03-02Fix C-variadic function printingDan Robertson-0/+15
There is no longer a need to append the string `", ..."` to a functions args as `...` is parsed as an argument and will appear in the functions arguments.
2019-03-02Rollup merge of #58785 - euclio:tool-lint-attrs, r=estebankkennytm-1/+5
allow specifying attributes for tool lints Needed for clippy to fix `unused_doc_comments` warnings that will be exposed by #57882 (and thus unblock it).
2019-03-02Auto merge of #58077 - Nemo157:generator-state-debug-info, r=Zoxcbors-2/+8
Add debug-info to access variables from generator state
2019-03-01Expand where negative supertrait specific error is shownEsteban Küber-0/+15
Fix #58857.
2019-03-01Handle type annotations in promoted MIR correctlyMatthew Jasper-0/+29
Type annotations are shared between the MIR of a function and the promoted constants for that function, so keep them in the type checker when we check the promoted MIR.
2019-03-01Include bounds from promoted constants in NLLMatthew Jasper-3/+78
Previously, a promoted that contains a function item wouldn't have the function items bounds propagated to the main function body.
2019-02-28update rustdoc coverage tests with new table layoutQuietMisdreavus-80/+51