48d6cef436
10484: internal: Update match checking algorithm r=lnicola a=iDawer Sync match checking algorithm with rust-lang/rust f31622a50 2021-11-12 (https://github.com/rust-lang/rust/pull/90813) This update brings huge simplification to the match checking and introduces an easy to use machinery for pattern destructuring and also: 1. Add a function to do post-inference normalization `hir_ty::infer::normalize(...)`. 2. Store binding modes in `InferenceResult`. Todo: - [x] Rebase & test (https://github.com/rust-analyzer/rust-analyzer/pull/10484#issuecomment-996669665) Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com> Co-authored-by: iDawer <ilnur.iskhakov.oss@outlook.com>