minor: put a mark back

This commit is contained in:
Aleksey Kladov 2021-06-13 11:49:32 +03:00
parent adbee621a7
commit 0eafc88079
2 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,7 @@ pub(crate) fn wildcards(pcx: PatCtxt<'_>, constructor: &Constructor) -> Self {
let is_non_exhaustive = let is_non_exhaustive =
is_field_list_non_exhaustive(variant_id, cx) && !adt_is_local; is_field_list_non_exhaustive(variant_id, cx) && !adt_is_local;
cov_mark::hit!(match_check_wildcard_expanded_to_substitutions);
let field_ty_data = cx.db.field_types(variant_id); let field_ty_data = cx.db.field_types(variant_id);
let field_tys = || { let field_tys = || {
field_ty_data field_ty_data

View File

@ -2172,6 +2172,7 @@ fn main() {
#[test] #[test]
fn pattern_type_is_of_substitution() { fn pattern_type_is_of_substitution() {
cov_mark::check!(match_check_wildcard_expanded_to_substitutions);
check_diagnostics( check_diagnostics(
r#" r#"
struct Foo<T>(T); struct Foo<T>(T);