diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2020-05-21 18:44:25 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2020-05-22 18:03:08 +0100 |
| commit | 9754b3fc1d9d24bc1e65136e5798cc5a6d226a4f (patch) | |
| tree | 5dd8c81e79c751350d0e4af0d5392b89013ca2ed /src | |
| parent | f9f3063cfaa792435ed88a92927bb2641388a7c6 (diff) | |
| download | rust-9754b3fc1d9d24bc1e65136e5798cc5a6d226a4f.tar.gz rust-9754b3fc1d9d24bc1e65136e5798cc5a6d226a4f.zip | |
Document `collect_bounding_regions`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_infer/infer/lexical_region_resolve/mod.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/librustc_infer/infer/lexical_region_resolve/mod.rs b/src/librustc_infer/infer/lexical_region_resolve/mod.rs index ef3eb24f288..fcf1949933b 100644 --- a/src/librustc_infer/infer/lexical_region_resolve/mod.rs +++ b/src/librustc_infer/infer/lexical_region_resolve/mod.rs @@ -862,6 +862,17 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { ); } + /// Collects all regions that "bound" the variable `orig_node_idx` in the + /// given direction. + /// + /// If `dup_vec` is `Some` it's used to track duplicates between successive + /// calls of this function. + /// + /// The return tuple fields are: + /// - a list of all concrete regions bounding the given region. + /// - the set of all region variables bounding the given region. + /// - a `bool` that's true if the returned region variables overlap with + /// those returned by a previous call for another region. fn collect_bounding_regions( &self, graph: &RegionGraph<'tcx>, |
