Alex Crichton
1fbca8824a
std: Fully stabilize Option<T>
...
This commit takes a second pass through the `std::option` module to fully
stabilize any lingering methods inside of it.
These items were made stable as-is
* Some
* None
* as_mut
* expect
* unwrap
* unwrap_or
* unwrap_or_else
* map
* map_or
* map_or_else
* and_then
* or_else
* unwrap_or_default
* Default implementation
* FromIterator implementation
* Copy implementation
These items were made stable with modifications
* iter - now returns a struct called Iter
* iter_mut - now returns a struct called IterMut
* into_iter - now returns a struct called IntoIter, Clone is never implemented
This is a breaking change due to the modifications to the names of the iterator
types returned. Code referencing the old names should updated to referencing the
newer names instead. This is also a breaking change due to the fact that
`IntoIter` no longer implements the `Clone` trait.
These items were explicitly not stabilized
* as_slice - waiting on indexing conventions
* as_mut_slice - waiting on conventions with as_slice as well
* cloned - the API was still just recently added
* ok_or - API remains experimental
* ok_or_else - API remains experimental
[breaking-change]
2014-12-14 11:24:49 -08:00
Jorge Aparicio
b8e0b81dd5
librustc_borrowck: add #![feature(unboxed_closures)]
2014-12-13 17:40:34 -05:00
Jorge Aparicio
db8300ce06
libstd: add missing imports
2014-12-13 17:03:48 -05:00
Jorge Aparicio
6f28816f87
Remove some unnecessary move
keywords
2014-12-13 17:03:48 -05:00
Jorge Aparicio
745225d905
libtest: use unboxed closures
2014-12-13 17:03:48 -05:00
Jorge Aparicio
015c0fcee5
librustc_driver: use unboxed closures
2014-12-13 17:03:48 -05:00
Jorge Aparicio
521a6e62b1
librustc_typeck: use unboxed closures
2014-12-13 17:03:48 -05:00
Jorge Aparicio
888f24969f
librustdoc: use unboxed closures
2014-12-13 17:03:48 -05:00
Jorge Aparicio
0676c3bf03
librustc_trans: use unboxed closures
2014-12-13 17:03:48 -05:00
Jorge Aparicio
0d4d8b9b78
librustc_trans: fix fallout
2014-12-13 17:03:47 -05:00
Jorge Aparicio
46272c18a2
librustc_typeck: fix fallout
2014-12-13 17:03:47 -05:00
Jorge Aparicio
1195708f64
librustc: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
933e7b4a3e
librustc_llvm: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
3739a2427b
librustc_trans: fix fallout
2014-12-13 17:03:47 -05:00
Jorge Aparicio
451eef5c40
librustc_back: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
d3d707c883
librustc: fix fallout
2014-12-13 17:03:47 -05:00
Jorge Aparicio
0dac05dd62
libsyntax: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
2160427900
Fix benches
2014-12-13 17:03:47 -05:00
Jorge Aparicio
cdbb3ca9b7
libstd: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
be53d619f8
librustrt: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
b44b5da8c2
libregex_macros: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
879ebce6a4
libcollections: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
9b075bcf3f
libserialize: use unboxed closures
2014-12-13 17:03:47 -05:00
Jorge Aparicio
95d0763707
libregex: use unboxed closures
2014-12-13 17:03:46 -05:00
Jorge Aparicio
1c5aac2b30
libarena: use unboxed closures
2014-12-13 17:03:46 -05:00
Jorge Aparicio
341e7bc08b
libregex: fix fallout in doc tests
2014-12-13 17:03:46 -05:00
Jorge Aparicio
61ba334452
libregex: impl Replacer for FnMut(&Captures) -> String implementors
2014-12-13 17:03:46 -05:00
Jorge Aparicio
01d2e46a2d
librustc: fix fallout
2014-12-13 17:03:46 -05:00
Jorge Aparicio
594ff51b23
librbml: use unboxed closures in free functions
2014-12-13 17:03:46 -05:00
Jorge Aparicio
807c5e8c8d
librbml: fix fallout
2014-12-13 17:03:46 -05:00
Jorge Aparicio
a8aff7e95c
libserialize: use unboxed closures
2014-12-13 17:03:46 -05:00
Jorge Aparicio
533a47bd9b
librand: use unboxed closures in distributions
module
2014-12-13 17:03:46 -05:00
Jorge Aparicio
5d7543b6ba
libgraphviz: use unboxed closures in LabelText
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
04652b57e5
libgetopts: use unboxed closures in each_split_within
2014-12-13 17:03:46 -05:00
Jorge Aparicio
f56f9728e6
libcore: use unboxed closures in slice::raw
free functions
2014-12-13 17:03:46 -05:00
Jorge Aparicio
c7b6eb38ff
libcore: use unboxed closures in float_to_str_bytes_common
2014-12-13 17:03:46 -05:00
Jorge Aparicio
5579692ce7
libcollections: use unboxed closures in VecMap
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
683342c3f0
libgraphviz: fix fallout
2014-12-13 17:03:46 -05:00
Jorge Aparicio
a7a065bd98
libcollections: use unboxed closures in [Clone]SliceAllocPrelude
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
6f19f8d430
libcollections: use unboxed closures in DList
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
d5c332688c
libcollections: use unboxed closures in Vec
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
0055678f7a
libcollections: use unboxed closures in Bitv
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
0d39fc01bf
libcollections: use unboxed closures in TreeMap
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
02e7389c5d
libcore: use unboxed closures in the char
module
2014-12-13 17:03:46 -05:00
Jorge Aparicio
1a87fc7c9f
libcore: use unboxed closures in Formatter
methods
2014-12-13 17:03:46 -05:00
Jorge Aparicio
0b0c3e1d96
libcore: fix fallout in doc tests
2014-12-13 17:03:46 -05:00
Jorge Aparicio
950fbf4e10
librustrt: fix fallout
2014-12-13 17:03:46 -05:00
Jorge Aparicio
8df27d26bd
libcoretest: fix fallout
2014-12-13 17:03:45 -05:00
Jorge Aparicio
45860b53e0
Fix run pass test
2014-12-13 17:03:45 -05:00
Jorge Aparicio
40b3617035
libstd: fix fallout
2014-12-13 17:03:45 -05:00