File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 198
198
#![ feature( const_mut_refs) ]
199
199
#![ feature( const_precise_live_drops) ]
200
200
#![ feature( const_refs_to_cell) ]
201
+ #![ feature( const_trait_impl) ]
201
202
#![ feature( decl_macro) ]
202
203
#![ feature( deprecated_suggestion) ]
203
204
#![ feature( doc_cfg) ]
Original file line number Diff line number Diff line change @@ -858,6 +858,7 @@ impl<T: ?Sized> Unpin for *mut T {}
858
858
#[ lang = "destruct" ]
859
859
#[ rustc_on_unimplemented( message = "can't drop `{Self}`" , append_const_msg) ]
860
860
#[ rustc_deny_explicit_impl]
861
+ #[ const_trait]
861
862
pub trait Destruct { }
862
863
863
864
/// A marker for tuple types.
Original file line number Diff line number Diff line change 134
134
/// these types cannot have destructors.
135
135
#[ lang = "drop" ]
136
136
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
137
+ #[ const_trait]
137
138
pub trait Drop {
138
139
/// Executes the destructor for this type.
139
140
///
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ use crate::marker::Tuple;
72
72
) ]
73
73
#[ fundamental] // so that regex can rely that `&str: !FnMut`
74
74
#[ must_use = "closures are lazy and do nothing unless called" ]
75
+ #[ const_trait]
75
76
pub trait Fn < Args : Tuple > : FnMut < Args > {
76
77
/// Performs the call operation.
77
78
#[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -158,6 +159,7 @@ pub trait Fn<Args: Tuple>: 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
+ #[ const_trait]
161
163
pub trait FnMut < Args : Tuple > : FnOnce < Args > {
162
164
/// Performs the call operation.
163
165
#[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -236,6 +238,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
236
238
) ]
237
239
#[ fundamental] // so that regex can rely that `&str: !FnMut`
238
240
#[ must_use = "closures are lazy and do nothing unless called" ]
241
+ #[ const_trait]
239
242
pub trait FnOnce < Args : Tuple > {
240
243
/// The returned type after the call operator is used.
241
244
#[ lang = "fn_once_output" ]
You can’t perform that action at this time.
0 commit comments