minor: put a mark back
This commit is contained in:
parent
adbee621a7
commit
0eafc88079
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user