Rollup merge of #101722 - aDotInTheVoid:rdy-ty-prim-docs, r=CraftSpider
Rustdoc-Json: Fix Type docs. Primitive doesn't include Array/Slice/Tuple, as they are their own variants. ResolvedPath doesn't include Traits, as they appear in the DynTrait variant.
This commit is contained in:
commit
b763cd53f4
@ -542,12 +542,12 @@ pub enum Term {
|
|||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
#[serde(tag = "kind", content = "inner")]
|
#[serde(tag = "kind", content = "inner")]
|
||||||
pub enum Type {
|
pub enum Type {
|
||||||
/// Structs, enums, and traits
|
/// Structs and enums
|
||||||
ResolvedPath(Path),
|
ResolvedPath(Path),
|
||||||
DynTrait(DynTrait),
|
DynTrait(DynTrait),
|
||||||
/// Parameterized types
|
/// Parameterized types
|
||||||
Generic(String),
|
Generic(String),
|
||||||
/// Fixed-size numeric types (plus int/usize/float), char, arrays, slices, and tuples
|
/// Built in numberic (i*, u*, f*) types, bool, and char
|
||||||
Primitive(String),
|
Primitive(String),
|
||||||
/// `extern "ABI" fn`
|
/// `extern "ABI" fn`
|
||||||
FunctionPointer(Box<FunctionPointer>),
|
FunctionPointer(Box<FunctionPointer>),
|
||||||
|
Loading…
Reference in New Issue
Block a user