diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-06-21 20:42:57 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-06-21 20:42:57 +0800 |
| commit | b57077bbf02c463308359330444cf219d3f04d17 (patch) | |
| tree | 3fedec67035f22e8c258f0350b3b48ca04458a42 | |
| parent | f82fb308af00567f80d0cbb23361a7fa8327d5df (diff) | |
| download | rust-b57077bbf02c463308359330444cf219d3f04d17.tar.gz rust-b57077bbf02c463308359330444cf219d3f04d17.zip | |
Readd `unsafe` keyword in tests
| -rw-r--r-- | src/test/rustdoc/const-display.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/rustdoc/const-display.rs b/src/test/rustdoc/const-display.rs index 33b65bb596f..8c995b9426b 100644 --- a/src/test/rustdoc/const-display.rs +++ b/src/test/rustdoc/const-display.rs @@ -31,20 +31,20 @@ pub const fn foo2() -> u32 { 42 } pub const fn bar2() -> u32 { 42 } -// @has 'foo/fn.foo2_gated.html' '//pre' 'pub const fn foo2_gated() -> u32' +// @has 'foo/fn.foo2_gated.html' '//pre' 'pub const unsafe fn foo2_gated() -> u32' // @!has - '//span[@class="since"]' #[unstable(feature = "foo2", issue = "none")] -pub const fn foo2_gated() -> u32 { 42 } +pub const unsafe fn foo2_gated() -> u32 { 42 } -// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const fn bar2_gated() -> u32' +// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32' // @has - '//span[@class="since"]' '1.0.0 (const: 1.0.0)' #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_stable(feature = "rust1", since = "1.0.0")] -pub const fn bar2_gated() -> u32 { 42 } +pub const unsafe fn bar2_gated() -> u32 { 42 } -// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub const fn bar_not_gated() -> u32' +// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub const unsafe fn bar_not_gated() -> u32' // @!has - '//span[@class="since"]' -pub const fn bar_not_gated() -> u32 { 42 } +pub const unsafe fn bar_not_gated() -> u32 { 42 } pub struct Foo; |
