We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ced891 commit cd76f2eCopy full SHA for cd76f2e
compiler/rustc_typeck/src/check/region.rs
@@ -801,7 +801,7 @@ impl<'tcx> Visitor<'tcx> for RegionResolutionVisitor<'tcx> {
801
/// Performance: This is a query rather than a simple function to enable
802
/// re-use in incremental scenarios. We may sometimes need to rerun the
803
/// type checker even when the HIR hasn't changed, and in those cases
804
-/// we can avoid reconstructing the region scope tree.
+/// we can avoid reconstructing the region scope tree.
805
pub fn region_scope_tree(tcx: TyCtxt<'_>, def_id: DefId) -> &ScopeTree {
806
let typeck_root_def_id = tcx.typeck_root_def_id(def_id);
807
if typeck_root_def_id != def_id {
0 commit comments