diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-02-11 11:15:55 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 11:15:55 +0530 |
| commit | 400b03ac3c3259506a23515197e49767d6eb5170 (patch) | |
| tree | a1ca1d9444fa71f889a9a554605718395f44002c /tests/rustdoc-js-std/parser-errors.js | |
| parent | 0e8f0b03cd94d9611063daaa516af2ae3489c6b5 (diff) | |
| parent | 0eba2f3c16b4e2792b75762c7643f3a09c9f1a3d (diff) | |
| download | rust-400b03ac3c3259506a23515197e49767d6eb5170.tar.gz rust-400b03ac3c3259506a23515197e49767d6eb5170.zip | |
Rollup merge of #107098 - compiler-errors:pat-mismatch-fn-call, r=lcnr
Suggest function call on pattern type mismatch Fixes #101208 This could definitely be generalized to support more suggestions in pattern matches. We can't use all of [`FnCtxt::emit_type_mismatch_suggestions`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/fn_ctxt/struct.FnCtxt.html#method.emit_type_mismatch_suggestions), but it's on my to-do list to play around with more suggestions that would be productive in this position.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
