File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 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 {
107107///
108108/// [*currently allocated*]: #currently-allocated-memory
109109#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
110+ #[ const_trait]
110111pub unsafe trait Allocator {
111112 /// Attempts to allocate a block of memory.
112113 ///
Original file line number Diff line number Diff line change 140140#![ feature( const_str_from_utf8_unchecked_mut) ]
141141#![ feature( const_swap) ]
142142#![ feature( const_trait_impl) ]
143+ #![ feature( const_try) ]
143144#![ feature( const_type_id) ]
144145#![ feature( const_type_name) ]
145146#![ feature( const_default_impls) ]
Original file line number Diff line number Diff line change 7171) ]
7272#[ fundamental] // so that regex can rely that `&str: !FnMut`
7373#[ must_use = "closures are lazy and do nothing unless called" ]
74+ #[ cfg_attr( not( bootstrap) , const_trait) ]
7475pub trait Fn < Args > : FnMut < Args > {
7576 /// Performs the call operation.
7677 #[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -158,6 +159,7 @@ pub trait Fn<Args>: FnMut<Args> {
158159) ]
159160#[ fundamental] // so that regex can rely that `&str: !FnMut`
160161#[ must_use = "closures are lazy and do nothing unless called" ]
162+ #[ cfg_attr( not( bootstrap) , const_trait) ]
161163pub trait FnMut < Args > : FnOnce < Args > {
162164 /// Performs the call operation.
163165 #[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -237,6 +239,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
237239) ]
238240#[ fundamental] // so that regex can rely that `&str: !FnMut`
239241#[ must_use = "closures are lazy and do nothing unless called" ]
242+ #[ cfg_attr( not( bootstrap) , const_trait) ]
240243pub trait FnOnce < Args > {
241244 /// The returned type after the call operator is used.
242245 #[ lang = "fn_once_output" ]
You can’t perform that action at this time.
0 commit comments