Skip to content

Commit b57077b

Browse files
committed
Readd unsafe keyword in tests
1 parent f82fb30 commit b57077b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/rustdoc/const-display.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ pub const fn foo2() -> u32 { 42 }
3131
pub const fn bar2() -> u32 { 42 }
3232

3333

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'
3535
// @!has - '//span[@class="since"]'
3636
#[unstable(feature = "foo2", issue = "none")]
37-
pub const fn foo2_gated() -> u32 { 42 }
37+
pub const unsafe fn foo2_gated() -> u32 { 42 }
3838

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'
4040
// @has - '//span[@class="since"]' '1.0.0 (const: 1.0.0)'
4141
#[stable(feature = "rust1", since = "1.0.0")]
4242
#[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 }
4444

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'
4646
// @!has - '//span[@class="since"]'
47-
pub const fn bar_not_gated() -> u32 { 42 }
47+
pub const unsafe fn bar_not_gated() -> u32 { 42 }
4848

4949
pub struct Foo;
5050

0 commit comments

Comments
 (0)