4
4
reason = "who ever let humans program computers, we're apparently really bad at it" ,
5
5
issue = "0" ) ]
6
6
7
- #![ feature( const_fn , foo, foo2) ]
7
+ #![ feature( foo, foo2) ]
8
8
#![ feature( staged_api) ]
9
9
10
10
// @has 'foo/fn.foo.html' '//pre' 'pub unsafe fn foo() -> u32'
11
11
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
12
- #[ rustc_const_unstable( feature="foo" ) ]
12
+ #[ rustc_const_unstable( feature="foo" , issue = "0" ) ]
13
13
pub const unsafe fn foo ( ) -> u32 { 42 }
14
14
15
15
// @has 'foo/fn.foo2.html' '//pre' 'pub fn foo2() -> u32'
@@ -18,6 +18,7 @@ pub const fn foo2() -> u32 { 42 }
18
18
19
19
// @has 'foo/fn.bar2.html' '//pre' 'pub const fn bar2() -> u32'
20
20
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21
+ #[ rustc_const_stable( feature = "rust1" , since = "1.0.0" ) ]
21
22
pub const fn bar2 ( ) -> u32 { 42 }
22
23
23
24
// @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 }
26
27
27
28
// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
28
29
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
30
+ #[ rustc_const_stable( feature = "rust1" , since = "1.0.0" ) ]
29
31
pub const unsafe fn bar2_gated ( ) -> u32 { 42 }
30
32
31
33
// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub unsafe fn bar_not_gated() -> u32'
0 commit comments