Move assert_matches to an inner module Fixes #82913
For more information about how rustc works, see the rustc dev guide.