Skip to content

Commit 8811b9c

Browse files
Aaron1011Centril
andauthored
Fix formatting
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 18bf9dd commit 8811b9c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_typeck/collect.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)