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(tag = "kind", content = "inner")]
|
||||
pub enum Type {
|
||||
/// Structs, enums, and traits
|
||||
/// Structs and enums
|
||||
ResolvedPath(Path),
|
||||
DynTrait(DynTrait),
|
||||
/// Parameterized types
|
||||
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),
|
||||
/// `extern "ABI" fn`
|
||||
FunctionPointer(Box<FunctionPointer>),
|
||||
|
Loading…
Reference in New Issue
Block a user