File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1706,18 +1706,20 @@ fn find_existential_constraints(tcx: TyCtxt<'_>, def_id: DefId) -> Ty<'_> {
17061706 } else {
17071707 debug ! ( "find_existential_constraints: scope={:?}" , tcx. hir( ) . get( scope) ) ;
17081708 match tcx. hir ( ) . get ( scope) {
1709- // We explicitly call ' visit_*' methods, instead of using intravisit::walk_* methods
1709+ // We explicitly call ` visit_*` methods, instead of using ` intravisit::walk_*` methods
17101710 // This allows our visitor to process the defining item itself, causing
17111711 // it to pick up any 'sibling' defining uses.
17121712 //
17131713 // For example, this code:
1714+ // ```
17141715 // fn foo() {
17151716 // existential type Blah: Debug;
17161717 // let my_closure = || -> Blah { true };
17171718 // }
1719+ // ```
17181720 //
1719- // requires us to explicitly process ' foo()' in order
1720- // to notice the defining usage of ' Blah'
1721+ // requires us to explicitly process ` foo()` in order
1722+ // to notice the defining usage of ` Blah`.
17211723 Node :: Item ( ref it) => locator. visit_item ( it) ,
17221724 Node :: ImplItem ( ref it) => locator. visit_impl_item ( it) ,
17231725 Node :: TraitItem ( ref it) => locator. visit_trait_item ( it) ,
You can’t perform that action at this time.
0 commit comments