Add comment for stability.rs

This commit is contained in:
Vadim Petrochenkov 2015-11-01 16:33:46 +03:00
parent 3468b8d42c
commit 306b0efc44

View File

@ -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)