44 reason = "who ever let humans program computers, we're apparently really bad at it" ,
55 issue = "0" ) ]
66
7- #![ feature( const_fn , foo, foo2) ]
7+ #![ feature( foo, foo2) ]
88#![ feature( staged_api) ]
99
1010// @has 'foo/fn.foo.html' '//pre' 'pub unsafe fn foo() -> u32'
1111#[ stable( feature = "rust1" , since = "1.0.0" ) ]
12- #[ rustc_const_unstable( feature="foo" ) ]
12+ #[ rustc_const_unstable( feature="foo" , issue = "0" ) ]
1313pub const unsafe fn foo ( ) -> u32 { 42 }
1414
1515// @has 'foo/fn.foo2.html' '//pre' 'pub fn foo2() -> u32'
@@ -18,6 +18,7 @@ pub const fn foo2() -> u32 { 42 }
1818
1919// @has 'foo/fn.bar2.html' '//pre' 'pub const fn bar2() -> u32'
2020#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21+ #[ rustc_const_stable( feature = "rust1" , since = "1.0.0" ) ]
2122pub const fn bar2 ( ) -> u32 { 42 }
2223
2324// @has 'foo/fn.foo2_gated.html' '//pre' 'pub unsafe fn foo2_gated() -> u32'
@@ -26,6 +27,7 @@ pub const unsafe fn foo2_gated() -> u32 { 42 }
2627
2728// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
2829#[ stable( feature = "rust1" , since = "1.0.0" ) ]
30+ #[ rustc_const_stable( feature = "rust1" , since = "1.0.0" ) ]
2931pub const unsafe fn bar2_gated ( ) -> u32 { 42 }
3032
3133// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub unsafe fn bar_not_gated() -> u32'
0 commit comments