We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 009e738 commit f7d4da6Copy full SHA for f7d4da6
library/core/src/option.rs
@@ -1338,9 +1338,8 @@ impl<T> Option<T> {
1338
/// assert_eq!(x.iter().next(), None);
1339
/// ```
1340
#[inline]
1341
- #[rustc_const_unstable(feature = "const_option", issue = "67441")]
1342
#[stable(feature = "rust1", since = "1.0.0")]
1343
- pub const fn iter(&self) -> Iter<'_, T> {
+ pub fn iter(&self) -> Iter<'_, T> {
1344
Iter { inner: Item { opt: self.as_ref() } }
1345
}
1346
0 commit comments