Fix overcapturing, unsafe extern blocks, and new unsafe ops
This commit is contained in:
parent
7f6873f64c
commit
e1819a889a
7 changed files with 24 additions and 16 deletions
|
@ -133,7 +133,7 @@ impl<N: Idx, S: Idx + Ord, A: Annotation> Sccs<N, S, A> {
|
|||
/// meaning that if `S1 -> S2`, we will visit `S2` first and `S1` after.
|
||||
/// This is convenient when the edges represent dependencies: when you visit
|
||||
/// `S1`, the value for `S2` will already have been computed.
|
||||
pub fn all_sccs(&self) -> impl Iterator<Item = S> {
|
||||
pub fn all_sccs(&self) -> impl Iterator<Item = S> + use<N, S, A> {
|
||||
(0..self.scc_data.len()).map(S::new)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue