File tree 1 file changed +5
-3
lines changed
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<'_> {
1706
1706
} else {
1707
1707
debug ! ( "find_existential_constraints: scope={:?}" , tcx. hir( ) . get( scope) ) ;
1708
1708
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
1710
1710
// This allows our visitor to process the defining item itself, causing
1711
1711
// it to pick up any 'sibling' defining uses.
1712
1712
//
1713
1713
// For example, this code:
1714
+ // ```
1714
1715
// fn foo() {
1715
1716
// existential type Blah: Debug;
1716
1717
// let my_closure = || -> Blah { true };
1717
1718
// }
1719
+ // ```
1718
1720
//
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`.
1721
1723
Node :: Item ( ref it) => locator. visit_item ( it) ,
1722
1724
Node :: ImplItem ( ref it) => locator. visit_impl_item ( it) ,
1723
1725
Node :: TraitItem ( ref it) => locator. visit_trait_item ( it) ,
You can’t perform that action at this time.
0 commit comments