remove 'const' from 'Option::iter' · qinheping/verify-rust-std@5011671 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 5011671
remove 'const' from 'Option::iter'
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1338,9 +1338,8 @@ impl Option { | ||
1338 | 1338 | /// assert_eq!(x.iter().next(), None); |
1339 | 1339 | /// ``` |
1340 | 1340 | #[inline] |
1341 | -#[rustc_const_unstable(feature = "const_option", issue = "67441")] | |
1342 | 1341 | #[stable(feature = "rust1", since = "1.0.0")] |
1343 | -pub const fn iter(&self) -> Iter<'_, T> { | |
1342 | +pub fn iter(&self) -> Iter<'_, T> { | |
1344 | 1343 | Iter { inner: Item { opt: self.as_ref() } } |
1345 | 1344 | } |
1346 | 1345 |