about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-07-21 11:51:06 +0100
committerDavid Wood <david.wood@huawei.com>2022-09-07 11:10:11 +0100
commit2991a7c7153946e02db0928eb5bfb2a53607219f (patch)
tree999780e01cd8d618ccddfdc9e83a10c397970a65
parentff479b1f3c77e8312843e7de212253632f4c1a8a (diff)
downloadrust-2991a7c7153946e02db0928eb5bfb2a53607219f.tar.gz
rust-2991a7c7153946e02db0928eb5bfb2a53607219f.zip
middle: comment -> doc comment
Drive-by change of a regular comment to a documentation comment on
`TyCtxt::is_suitable_region`.

Signed-off-by: David Wood <david.wood@huawei.com>
-rw-r--r--compiler/rustc_middle/src/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index 262d59f8ff8..c97b96f66d1 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -1596,7 +1596,7 @@ impl<'tcx> TyCtxt<'tcx> {
         })
     }
 
-    // Returns the `DefId` and the `BoundRegionKind` corresponding to the given region.
+    /// Returns the `DefId` and the `BoundRegionKind` corresponding to the given region.
     pub fn is_suitable_region(self, region: Region<'tcx>) -> Option<FreeRegionInfo> {
         let (suitable_region_binding_scope, bound_region) = match *region {
             ty::ReFree(ref free_region) => {