Add f16
and f128
to rustdoc's PrimitiveType
Fix a few places where these primitives were missing from librustdoc.
This commit is contained in:
parent
aa1c45908d
commit
ebc86e6f58
3 changed files with 21 additions and 1 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue