Skip to content

Commit 306b0ef

Browse files
committedNov 1, 2015
Add comment for stability.rs
1 parent 3468b8d commit 306b0ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/librustc/middle/stability.rs

+1
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ pub fn check_pat(tcx: &ty::ctxt, pat: &hir::Pat,
541541
};
542542
match pat.node {
543543
// Foo(a, b, c)
544+
// A Variant(..) pattern `hir::PatEnum(_, None)` doesn't have to be recursed into.
544545
hir::PatEnum(_, Some(ref pat_fields)) => {
545546
for (field, struct_field) in pat_fields.iter().zip(&v.fields) {
546547
maybe_do_stability_check(tcx, struct_field.did, field.span, cb)

0 commit comments

Comments
 (0)