Commit 2ee8304
authored
Rollup merge of rust-lang#130087 - RalfJung:option-const-iter, r=workingjubilee
remove 'const' from 'Option::iter'
This is kind of pointless to be a `const fn` since you can't do anything with the iterator. It is also the only `const fn iter*` in the entire standard library. It probably got constified when `~const` traits got added everywhere, and then was forgotten to be de-constified when that was undone.
The rest of the const_option feature seems like it can reasonably be stabilized, but this one IMO should not be stabilized, and it's not worth creating a new tracking issue.
Cc rust-lang#674411 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | | - | |
1342 | 1341 | | |
1343 | | - | |
| 1342 | + | |
1344 | 1343 | | |
1345 | 1344 | | |
1346 | 1345 | | |
| |||
0 commit comments