rustc: Eliminate a derived error in check::_match
Merge pull request #8479 from catamorphism/derived-errors

rustc: Eliminate a derived error in check::_match