mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
remove 'const' from 'Option::iter'
This commit is contained in:
parent
009e73825a
commit
f7d4da65c7
@ -1338,9 +1338,8 @@ impl<T> Option<T> {
|
||||
/// assert_eq!(x.iter().next(), None);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_unstable(feature = "const_option", issue = "67441")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub const fn iter(&self) -> Iter<'_, T> {
|
||||
pub fn iter(&self) -> Iter<'_, T> {
|
||||
Iter { inner: Item { opt: self.as_ref() } }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user