diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-26 18:06:48 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-26 18:06:48 +0100 |
| commit | aac7429c17aa558fbd9fb0be093e7bd9ccc73972 (patch) | |
| tree | 691aa8b7f006fb606e76ecc810691bc1289d0e0a /src/rustdoc-json-types | |
| parent | 84946fe2412194418b838c34815b79d36b22d4f8 (diff) | |
| download | rust-aac7429c17aa558fbd9fb0be093e7bd9ccc73972.tar.gz rust-aac7429c17aa558fbd9fb0be093e7bd9ccc73972.zip | |
Rustdoc-Json: List impls for primitives
Closes #101695
Diffstat (limited to 'src/rustdoc-json-types')
| -rw-r--r-- | src/rustdoc-json-types/lib.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index fb183042670..7379b04ad16 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -9,7 +9,7 @@ use std::path::PathBuf; use serde::{Deserialize, Serialize}; /// rustdoc format-version. -pub const FORMAT_VERSION: u32 = 21; +pub const FORMAT_VERSION: u32 = 22; /// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information /// about the language items in the local crate, as well as info about external items to allow @@ -254,7 +254,7 @@ pub enum ItemEnum { Macro(String), ProcMacro(ProcMacro), - PrimitiveType(String), + Primitive(Primitive), AssocConst { #[serde(rename = "type")] @@ -709,5 +709,11 @@ pub struct Static { pub expr: String, } +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub struct Primitive { + pub name: String, + pub impls: Vec<Id>, +} + #[cfg(test)] mod tests; |
