summary refs log tree commit diff
path: root/src/test/ui/let-else
AgeCommit message (Collapse)AuthorLines
2022-06-16--bless uiMaybe Waffle-2/+1
2022-05-06Resolve vars in note_type_errJack Huey-4/+4
2022-02-28Tweak diagnosticsEsteban Kuber-4/+4
* Recover from invalid `'label: ` before block. * Make suggestion to enclose statements in a block multipart. * Point at `match`, `while`, `loop` and `unsafe` keywords when failing to parse their expression. * Do not suggest `{ ; }`. * Do not suggest `|` when very unlikely to be what was wanted (in `let` statements).
2022-02-22Rollup merge of #94208 - est31:let_else, r=Mark-SimulacrumMatthias Krüger-4/+100
Add the let else tests found missing in the stabilization report In the stabilization report of `let else`, in #93628, I found various cases which weren't tested. This PR adds them.
2022-02-21Better error if the user tries to do assignment ... elseest31-0/+35
2022-02-21Add regression test for #92069est31-0/+20
2022-02-21Expand let-else allow testsest31-4/+80
The #[allow(...)] directive was tested for the body and the pattern, but non-presence of it wasn't tested. Furthermore, it wasn't tested for the expression. We add expression tests as well as ones checking the non-presence of the directive.
2021-12-13let-else: add deref-coercion testsCormac Relf-0/+171
2021-12-13let-else: add match-ergonomics tests adapted from rfc2005Cormac Relf-0/+228
collect explicit-mut passing tests in one file
2021-12-13let-else: build out ref/ref mut tests, with/without explicit annotationsCormac Relf-19/+208
expands issue 89960
2021-12-13let-else: add tests for moved expressions, copy out of non-copyCormac Relf-0/+62
2021-12-13let-else: fix attribute aliasing + add test for issue 89807Cormac Relf-0/+14
2021-10-18Rollup merge of #89974 - est31:let_else_if_error, r=nagisaMatthias Krüger-0/+28
Nicer error message if the user attempts to do let...else if Gives a nice "conditional `else if` is not supported for `let...else`" error when encountering a `let...else if` pattern, as suggested in the [let...else tracking issue](https://github.com/rust-lang/rust/issues/87335#issuecomment-944846205).
2021-10-18Rollup merge of #89965 - JohnTitor:fix-let-else-ice-with-ref-mut, r=petrochenkovMatthias Krüger-0/+19
Fix ICE with `let...else` and `ref mut` Fixes #89960, opened for review. I'm not satisfied with the current diagnostics, any ideas?
2021-10-17Nicer error message if the user attempts to do let...else ifest31-0/+28
2021-10-17Some "parenthesis" and "parentheses" fixesr00ster91-6/+6
2021-10-17Fix ICE with `let...else` and `ref mut`Yuki Okushi-0/+19
2021-08-30Add let-else testsCameron Steffen-0/+322