File tree 14 files changed +1
-18
lines changed
14 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 121
121
#![ feature( maybe_uninit_extra, maybe_uninit_slice) ]
122
122
#![ feature( alloc_layout_extra) ]
123
123
#![ feature( try_trait) ]
124
- #![ feature( mem_take) ]
125
124
#![ feature( associated_type_bounds) ]
126
125
127
126
// Allow testing this library
Original file line number Diff line number Diff line change 127
127
#![ feature( adx_target_feature) ]
128
128
#![ feature( maybe_uninit_slice) ]
129
129
#![ feature( external_doc) ]
130
- #![ feature( mem_take) ]
131
130
#![ feature( associated_type_bounds) ]
132
131
133
132
#[ prelude_import]
Original file line number Diff line number Diff line change @@ -520,8 +520,6 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
520
520
/// A simple example:
521
521
///
522
522
/// ```
523
- /// #![feature(mem_take)]
524
- ///
525
523
/// use std::mem;
526
524
///
527
525
/// let mut v: Vec<i32> = vec![1, 2];
@@ -552,8 +550,6 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
552
550
/// `self`, allowing it to be returned:
553
551
///
554
552
/// ```
555
- /// #![feature(mem_take)]
556
- ///
557
553
/// use std::mem;
558
554
///
559
555
/// # struct Buffer<T> { buf: Vec<T> }
@@ -572,7 +568,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
572
568
///
573
569
/// [`Clone`]: ../../std/clone/trait.Clone.html
574
570
#[ inline]
575
- #[ unstable ( feature = "mem_take" , issue = "61129 " ) ]
571
+ #[ stable ( feature = "mem_take" , since = "1.40.0 " ) ]
576
572
pub fn take < T : Default > ( dest : & mut T ) -> T {
577
573
replace ( dest, T :: default ( ) )
578
574
}
Original file line number Diff line number Diff line change 25
25
#![ feature( extern_types) ]
26
26
#![ feature( in_band_lifetimes) ]
27
27
#![ feature( optin_builtin_traits) ]
28
- #![ feature( mem_take) ]
29
28
#![ feature( non_exhaustive) ]
30
29
#![ feature( rustc_attrs) ]
31
30
#![ feature( specialization) ]
Original file line number Diff line number Diff line change 58
58
#![ feature( crate_visibility_modifier) ]
59
59
#![ feature( proc_macro_hygiene) ]
60
60
#![ feature( log_syntax) ]
61
- #![ feature( mem_take) ]
62
61
#![ feature( associated_type_bounds) ]
63
62
#![ feature( rustc_attrs) ]
64
63
Original file line number Diff line number Diff line change 19
19
#![ feature( link_args) ]
20
20
#![ feature( static_nobundle) ]
21
21
#![ feature( trusted_len) ]
22
- #![ feature( mem_take) ]
23
22
24
23
use back:: write:: { create_target_machine, create_informational_target_machine} ;
25
24
use syntax_pos:: symbol:: Symbol ;
Original file line number Diff line number Diff line change 10
10
#![ feature( in_band_lifetimes) ]
11
11
#![ feature( nll) ]
12
12
#![ feature( trusted_len) ]
13
- #![ feature( mem_take) ]
14
13
#![ feature( associated_type_bounds) ]
15
14
16
15
#![ recursion_limit="256" ]
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
22
22
#![ feature( slice_concat_ext) ]
23
23
#![ feature( trusted_len) ]
24
24
#![ feature( try_blocks) ]
25
- #![ feature( mem_take) ]
26
25
#![ feature( associated_type_bounds) ]
27
26
#![ feature( range_is_empty) ]
28
27
#![ feature( stmt_expr_attributes) ]
Original file line number Diff line number Diff line change 11
11
12
12
#![ feature( crate_visibility_modifier) ]
13
13
#![ feature( label_break_value) ]
14
- #![ feature( mem_take) ]
15
14
#![ feature( nll) ]
16
15
17
16
#![ recursion_limit="256" ]
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ This API is completely unstable and subject to change.
67
67
#![ feature( nll) ]
68
68
#![ feature( slice_patterns) ]
69
69
#![ feature( never_type) ]
70
- #![ feature( mem_take) ]
71
70
72
71
#![ recursion_limit="256" ]
73
72
Original file line number Diff line number Diff line change 15
15
#![ feature( const_fn) ]
16
16
#![ feature( drain_filter) ]
17
17
#![ feature( never_type) ]
18
- #![ feature( mem_take) ]
19
18
#![ feature( unicode_internals) ]
20
19
21
20
#![ recursion_limit="256" ]
Original file line number Diff line number Diff line change 277
277
#![ feature( log_syntax) ]
278
278
#![ feature( maybe_uninit_ref) ]
279
279
#![ feature( maybe_uninit_slice) ]
280
- #![ feature( mem_take) ]
281
280
#![ feature( needs_panic_runtime) ]
282
281
#![ feature( never_type) ]
283
282
#![ feature( nll) ]
Original file line number Diff line number Diff line change 12
12
#![ feature( const_transmute) ]
13
13
#![ feature( crate_visibility_modifier) ]
14
14
#![ feature( label_break_value) ]
15
- #![ feature( mem_take) ]
16
15
#![ feature( nll) ]
17
16
#![ feature( proc_macro_diagnostic) ]
18
17
#![ feature( proc_macro_internals) ]
Original file line number Diff line number Diff line change 5
5
6
6
#![ feature( crate_visibility_modifier) ]
7
7
#![ feature( decl_macro) ]
8
- #![ feature( mem_take) ]
9
8
#![ feature( nll) ]
10
9
#![ feature( proc_macro_internals) ]
11
10
#![ feature( proc_macro_quote) ]
You can’t perform that action at this time.
0 commit comments