Skip to content

Commit acfc708

Browse files
committed
Add docstring
1 parent ad5e18d commit acfc708

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_typeck/src/check/upvar.rs

+3
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
796796
/// - One of the paths starting at this root variable, that is not captured needs Drop **or**
797797
/// - One of the paths captured does not implement all the auto-traits its root variable
798798
/// implements.
799+
///
800+
/// Returns a tuple containing a vector of HirIds as well as a String containing the reason
801+
/// why root variables whose HirId is contained in the vector should be fully captured.
799802
fn compute_2229_migrations(
800803
&self,
801804
closure_def_id: DefId,

0 commit comments

Comments
 (0)