Use RHS's struct def ID for error messages in pattern matching

Fixes #14541
auto merge of #14562 : jakub-/rust/issue-14541, r=alexcrichton

Fixes #14541