Add missing stability attributes on struct fields.
Unstable is the conservative choice. cc #22950.
This commit is contained in:
parent
1576142495
commit
b0e7c58bf0
1 changed files with 2 additions and 0 deletions
|
|
@ -2061,6 +2061,7 @@ pub struct Scan<I, St, F> {
|
|||
f: F,
|
||||
|
||||
/// The current internal state to be passed to the closure next.
|
||||
#[unstable(feature = "core")]
|
||||
pub state: St,
|
||||
}
|
||||
|
||||
|
|
@ -2338,6 +2339,7 @@ impl<I: RandomAccessIterator, F> RandomAccessIterator for Inspect<I, F>
|
|||
pub struct Unfold<St, F> {
|
||||
f: F,
|
||||
/// Internal state that will be passed to the closure on the next iteration
|
||||
#[unstable(feature = "core")]
|
||||
pub state: St,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue