File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ impl fmt::Display for AllocError {
107
107
///
108
108
/// [*currently allocated*]: #currently-allocated-memory
109
109
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
110
+ #[ const_trait]
110
111
pub unsafe trait Allocator {
111
112
/// Attempts to allocate a block of memory.
112
113
///
Original file line number Diff line number Diff line change 140
140
#![ feature( const_str_from_utf8_unchecked_mut) ]
141
141
#![ feature( const_swap) ]
142
142
#![ feature( const_trait_impl) ]
143
+ #![ feature( const_try) ]
143
144
#![ feature( const_type_id) ]
144
145
#![ feature( const_type_name) ]
145
146
#![ feature( const_default_impls) ]
Original file line number Diff line number Diff line change 71
71
) ]
72
72
#[ fundamental] // so that regex can rely that `&str: !FnMut`
73
73
#[ must_use = "closures are lazy and do nothing unless called" ]
74
+ #[ cfg_attr( not( bootstrap) , const_trait) ]
74
75
pub trait Fn < Args > : FnMut < Args > {
75
76
/// Performs the call operation.
76
77
#[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -158,6 +159,7 @@ pub trait Fn<Args>: FnMut<Args> {
158
159
) ]
159
160
#[ fundamental] // so that regex can rely that `&str: !FnMut`
160
161
#[ must_use = "closures are lazy and do nothing unless called" ]
162
+ #[ cfg_attr( not( bootstrap) , const_trait) ]
161
163
pub trait FnMut < Args > : FnOnce < Args > {
162
164
/// Performs the call operation.
163
165
#[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -237,6 +239,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
237
239
) ]
238
240
#[ fundamental] // so that regex can rely that `&str: !FnMut`
239
241
#[ must_use = "closures are lazy and do nothing unless called" ]
242
+ #[ cfg_attr( not( bootstrap) , const_trait) ]
240
243
pub trait FnOnce < Args > {
241
244
/// The returned type after the call operator is used.
242
245
#[ lang = "fn_once_output" ]
You can’t perform that action at this time.
0 commit comments