diff options
| author | Ralf Jung <post@ralfj.de> | 2024-09-07 21:41:28 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-07 21:41:28 +0200 |
| commit | f7d4da65c7df37c316d9e2793dff1ae6c994c44d (patch) | |
| tree | c6a9ac566b46a6663adbcff1d0b104305dd53094 | |
| parent | 009e73825af0e59ad4fc603562e038b3dbd6593a (diff) | |
| download | rust-f7d4da65c7df37c316d9e2793dff1ae6c994c44d.tar.gz rust-f7d4da65c7df37c316d9e2793dff1ae6c994c44d.zip | |
remove 'const' from 'Option::iter'
| -rw-r--r-- | library/core/src/option.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 50cb22b7eb3..b48c6136a45 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -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() } } } |
