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:
Dylan DPC 2022-09-16 11:17:00 +05:30 committed by GitHub
commit b763cd53f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>),