about summary refs log tree commit diff
path: root/tests/rustdoc/primitive
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-04-06 22:38:20 -0400
committerTrevor Gross <tmgross@umich.edu>2024-04-06 23:47:40 -0400
commitebc86e6f5846c4e8995e20416dd25cd1bf137b7e (patch)
tree880faa6206ad679a2aac91b7989df39b735a4b18 /tests/rustdoc/primitive
parentaa1c45908df252a5b0c14e1bcb38c6c55ae02efe (diff)
downloadrust-ebc86e6f5846c4e8995e20416dd25cd1bf137b7e.tar.gz
rust-ebc86e6f5846c4e8995e20416dd25cd1bf137b7e.zip
Add `f16` and `f128` to rustdoc's `PrimitiveType`
Fix a few places where these primitives were missing from librustdoc.
Diffstat (limited to 'tests/rustdoc/primitive')
-rw-r--r--tests/rustdoc/primitive/primitive.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/rustdoc/primitive/primitive.rs b/tests/rustdoc/primitive/primitive.rs
index 32af2636c18..4b89fd9dfb7 100644
--- a/tests/rustdoc/primitive/primitive.rs
+++ b/tests/rustdoc/primitive/primitive.rs
@@ -1,6 +1,8 @@
 #![crate_name = "foo"]
 
 #![feature(rustc_attrs)]
+#![feature(f16)]
+#![feature(f128)]
 
 // @has foo/index.html '//h2[@id="primitives"]' 'Primitive Types'
 // @has foo/index.html '//a[@href="primitive.i32.html"]' 'i32'
@@ -13,9 +15,19 @@
 // @!has foo/index.html '//span' '🔒'
 #[rustc_doc_primitive = "i32"]
 /// this is a test!
-mod i32{}
+mod i32 {}
 
 // @has foo/primitive.bool.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'hello'
 #[rustc_doc_primitive = "bool"]
 /// hello
 mod bool {}
+
+// @has foo/primitive.f16.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'hello'
+#[rustc_doc_primitive = "f16"]
+/// hello
+mod f16 {}
+
+// @has foo/primitive.f128.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'hello'
+#[rustc_doc_primitive = "f128"]
+/// hello
+mod f128 {}