about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2024-07-18 11:54:04 -0300
committerSantiago Pastorino <spastorino@gmail.com>2024-07-23 00:29:39 -0300
commit8366c7fe9c2db004224648239644f0fbecc185ea (patch)
tree9cc89985d3da5ed71da7656d91079d2700ac5d8a /tests/rustdoc
parent20f23abbecd7ac5e04dd7ccadc29c3824e28a269 (diff)
downloadrust-8366c7fe9c2db004224648239644f0fbecc185ea.tar.gz
rust-8366c7fe9c2db004224648239644f0fbecc185ea.zip
Stabilize unsafe extern blocks (RFC 3484)
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/unsafe-extern-blocks.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/rustdoc/unsafe-extern-blocks.rs b/tests/rustdoc/unsafe-extern-blocks.rs
index 22d3beea6c3..829095f300f 100644
--- a/tests/rustdoc/unsafe-extern-blocks.rs
+++ b/tests/rustdoc/unsafe-extern-blocks.rs
@@ -1,6 +1,5 @@
 // Test to ensure the feature is working as expected.
 
-#![feature(unsafe_extern_blocks)]
 #![crate_name = "foo"]
 
 // @has 'foo/index.html'
@@ -13,7 +12,7 @@
 // @count - '//ul[@class="item-table"]//sup[@title="unsafe function"]' 1
 // @has - '//ul[@class="item-table"]//sup[@title="unsafe function"]' '⚠'
 
-unsafe extern {
+unsafe extern "C" {
     // @has 'foo/static.FOO.html'
     // @has - '//pre[@class="rust item-decl"]' 'pub static FOO: i32'
     pub safe static FOO: i32;