Skip to content

Commit 395a789

Browse files
committed
Fix rustdoc test
1 parent 8c83264 commit 395a789

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/rustdoc/const-display.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
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")]
1313
pub 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")]
2122
pub 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")]
2931
pub 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

Comments
 (0)