Add comment for stability.rs
This commit is contained in:
parent
3468b8d42c
commit
306b0efc44
@ -541,6 +541,7 @@ pub fn check_pat(tcx: &ty::ctxt, pat: &hir::Pat,
|
||||
};
|
||||
match pat.node {
|
||||
// Foo(a, b, c)
|
||||
// A Variant(..) pattern `hir::PatEnum(_, None)` doesn't have to be recursed into.
|
||||
hir::PatEnum(_, Some(ref pat_fields)) => {
|
||||
for (field, struct_field) in pat_fields.iter().zip(&v.fields) {
|
||||
maybe_do_stability_check(tcx, struct_field.did, field.span, cb)
|
||||
|
Loading…
Reference in New Issue
Block a user