Copy may_have_side_effect from I for Copied<I>
This commit is contained in:
parent
3ee0747b5a
commit
431968df37
1 changed files with 3 additions and 1 deletions
|
|
@ -590,7 +590,9 @@ unsafe impl<'a, I, T: 'a> TrustedRandomAccess for Copied<I>
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn may_have_side_effect() -> bool { false }
|
||||
fn may_have_side_effect() -> bool {
|
||||
I::may_have_side_effect()
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "iter_copied", issue = "0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue