about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoxane <roxane.fruytier@hotmail.com>2021-05-06 15:14:38 -0400
committerRoxane <roxane.fruytier@hotmail.com>2021-05-06 15:14:38 -0400
commitacfc708b7c8c4e43379d1dad28ee3a5887d07942 (patch)
tree1306a090d11803628f1348c125c22276085d0041
parentad5e18d5e3309479f048c7224a4b1bb96905cc8d (diff)
downloadrust-acfc708b7c8c4e43379d1dad28ee3a5887d07942.tar.gz
rust-acfc708b7c8c4e43379d1dad28ee3a5887d07942.zip
Add docstring
-rw-r--r--compiler/rustc_typeck/src/check/upvar.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_typeck/src/check/upvar.rs b/compiler/rustc_typeck/src/check/upvar.rs
index c435d576d83..a92b9b28887 100644
--- a/compiler/rustc_typeck/src/check/upvar.rs
+++ b/compiler/rustc_typeck/src/check/upvar.rs
@@ -796,6 +796,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
     /// - One of the paths starting at this root variable, that is not captured needs Drop **or**
     /// - One of the paths captured does not implement all the auto-traits its root variable
     ///   implements.
+    /// 
+    /// Returns a tuple containing a vector of HirIds as well as a String containing the reason
+    /// why root variables whose HirId is contained in the vector should be fully captured.
     fn compute_2229_migrations(
         &self,
         closure_def_id: DefId,