We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1b5225 + 30b19c9 commit a4af930Copy full SHA for a4af930
src/librustc/middle/region.rs
@@ -413,7 +413,7 @@ pub struct ScopeTree {
413
414
/// The number of visit_expr and visit_pat calls done in the body.
415
/// Used to sanity check visit_expr/visit_pat call count when
416
- /// calculating geneartor interiors.
+ /// calculating generator interiors.
417
body_expr_count: FxHashMap<hir::BodyId, usize>,
418
}
419
@@ -785,7 +785,7 @@ impl<'tcx> ScopeTree {
785
786
/// Gives the number of expressions visited in a body.
787
/// Used to sanity check visit_expr call count when
788
789
pub fn body_expr_count(&self, body_id: hir::BodyId) -> Option<usize> {
790
self.body_expr_count.get(&body_id).map(|r| *r)
791
0 commit comments