Skip to content

Commit a656581

Browse files
committed
Update documentation of into_refs()
Discourage users from using this function.
1 parent 16e3df3 commit a656581

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/src/gc.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,17 @@ impl<'r> CollectableRefs<'r>
167167
Ok(retval)
168168
}
169169

170-
/// Perform the computation of references to collect.
170+
/// Find collectable references for multiple issues
171171
///
172+
/// This is a convenience function.
173+
///
174+
/// # Note
175+
///
176+
/// Internally, this function collects the references during the call.
177+
/// Consider using the `for_issues` function in conjunction with
178+
/// `flat_map()` on an issue iterator instead.
179+
///
180+
#[deprecated]
172181
pub fn into_refs<I, J, K>(self, issues: I) -> Result<Vec<Reference<'r>>>
173182
where I: IntoIterator<Item = K, IntoIter = J>,
174183
J: Iterator<Item = K>,

0 commit comments

Comments
 (0)