File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-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_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_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 82
82
#![ feature( const_float_bits_conv) ]
83
83
#![ feature( const_float_classify) ]
84
84
#![ feature( const_heap) ]
85
+ #![ feature( const_convert) ]
85
86
#![ feature( const_inherent_unchecked_arith) ]
86
87
#![ feature( const_int_unchecked_arith) ]
87
88
#![ feature( const_intrinsic_copy) ]
You can’t perform that action at this time.
0 commit comments