File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,8 @@ where
532
532
533
533
// From implies Into
534
534
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
535
- impl < T , U > Into < U > for T
535
+ #[ rustc_const_unstable( feature = "const_identity_convert" , issue = "none" ) ]
536
+ impl < T , U > const Into < U > for T
536
537
where
537
538
U : From < T > ,
538
539
{
@@ -543,7 +544,8 @@ where
543
544
544
545
// From (and thus Into) is reflexive
545
546
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
546
- impl < T > From < T > for T {
547
+ #[ rustc_const_unstable( feature = "const_identity_convert" , issue = "none" ) ]
548
+ impl < T > const From < T > for T {
547
549
fn from ( t : T ) -> T {
548
550
t
549
551
}
Original file line number Diff line number Diff line change 105
105
#![ feature( const_size_of_val) ]
106
106
#![ feature( const_swap) ]
107
107
#![ feature( const_align_of_val) ]
108
+ #![ allow( incomplete_features) ] // FIXME: We very much probably want to remove this line whenever possible
109
+ #![ feature( const_trait_impl) ]
110
+ #![ feature( const_identity_convert) ]
108
111
#![ feature( const_type_id) ]
109
112
#![ feature( const_type_name) ]
110
113
#![ feature( const_likely) ]
You can’t perform that action at this time.
0 commit comments