File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ pub const fn foo2() -> u32 { 42 }
31
31
pub const fn bar2 ( ) -> u32 { 42 }
32
32
33
33
34
- // @has 'foo/fn.foo2_gated.html' '//pre' 'pub const fn foo2_gated() -> u32'
34
+ // @has 'foo/fn.foo2_gated.html' '//pre' 'pub const unsafe fn foo2_gated() -> u32'
35
35
// @!has - '//span[@class="since"]'
36
36
#[ unstable( feature = "foo2" , issue = "none" ) ]
37
- pub const fn foo2_gated ( ) -> u32 { 42 }
37
+ pub const unsafe fn foo2_gated ( ) -> u32 { 42 }
38
38
39
- // @has 'foo/fn.bar2_gated.html' '//pre' 'pub const fn bar2_gated() -> u32'
39
+ // @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
40
40
// @has - '//span[@class="since"]' '1.0.0 (const: 1.0.0)'
41
41
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
42
42
#[ rustc_const_stable( feature = "rust1" , since = "1.0.0" ) ]
43
- pub const fn bar2_gated ( ) -> u32 { 42 }
43
+ pub const unsafe fn bar2_gated ( ) -> u32 { 42 }
44
44
45
- // @has 'foo/fn.bar_not_gated.html' '//pre' 'pub const fn bar_not_gated() -> u32'
45
+ // @has 'foo/fn.bar_not_gated.html' '//pre' 'pub const unsafe fn bar_not_gated() -> u32'
46
46
// @!has - '//span[@class="since"]'
47
- pub const fn bar_not_gated ( ) -> u32 { 42 }
47
+ pub const unsafe fn bar_not_gated ( ) -> u32 { 42 }
48
48
49
49
pub struct Foo ;
50
50
You can’t perform that action at this time.
0 commit comments