about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2019-07-28 18:33:32 -0400
committerGitHub <noreply@github.com>2019-07-28 18:33:32 -0400
commit8811b9ce9ffafdbe483cc82ea8a3bcb4ab7cb9af (patch)
tree6acb48694523463f3ae7e7a407412590ee39bf93 /src
parent18bf9dd4b7e9834bc6981ee413f025f3b2f7e386 (diff)
downloadrust-8811b9ce9ffafdbe483cc82ea8a3bcb4ab7cb9af.tar.gz
rust-8811b9ce9ffafdbe483cc82ea8a3bcb4ab7cb9af.zip
Fix formatting
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/collect.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs
index 0f0cbd5d76b..395e266ae46 100644
--- a/src/librustc_typeck/collect.rs
+++ b/src/librustc_typeck/collect.rs
@@ -1706,18 +1706,20 @@ fn find_existential_constraints(tcx: TyCtxt<'_>, def_id: DefId) -> Ty<'_> {
     } else {
         debug!("find_existential_constraints: scope={:?}", tcx.hir().get(scope));
         match tcx.hir().get(scope) {
-            // We explicitly call 'visit_*' methods, instead of using intravisit::walk_* methods
+            // We explicitly call `visit_*` methods, instead of using `intravisit::walk_*` methods
             // This allows our visitor to process the defining item itself, causing
             // it to pick up any 'sibling' defining uses.
             //
             // For example, this code:
+            // ```
             // fn foo() {
             //     existential type Blah: Debug;
             //     let my_closure = || -> Blah { true };
             // }
+            // ```
             //
-            // requires us to explicitly process 'foo()' in order
-            // to notice the defining usage of 'Blah'
+            // requires us to explicitly process `foo()` in order
+            // to notice the defining usage of `Blah`.
             Node::Item(ref it) => locator.visit_item(it),
             Node::ImplItem(ref it) => locator.visit_impl_item(it),
             Node::TraitItem(ref it) => locator.visit_trait_item(it),