param -> parameter, pat -> pattern

This commit is contained in:
Santiago Pastorino 2020-10-20 17:45:36 -03:00
parent bdd1b85f95
commit 497ee0e1ff
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -11,9 +11,9 @@ use std::mem;
pub(super) struct GatherLocalsVisitor<'a, 'tcx> {
fcx: &'a FnCtxt<'a, 'tcx>,
parent_id: hir::HirId,
// params are special cases of pats, but we want to handle them as
// *distinct* cases. so track when we are hitting a pat *within* an fn
// param.
// parameters are special cases of patterns, but we want to handle them as
// *distinct* cases. so track when we are hitting a pattern *within* an fn
// parameter.
outermost_fn_param_pat: bool,
}