Skip to content

Commit 7023af7

Browse files
committed
1 parent 336129c commit 7023af7

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<a name="v0.18.0"></a>
2+
# [v0.18.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.18.0) - 2022-09-27
3+
- Format Version: 22
4+
- Upstream Commit: [`aac7429c17aa558fbd9fb0be093e7bd9ccc73972`](https://github.com/rust-lang/rust/commit/aac7429c17aa558fbd9fb0be093e7bd9ccc73972)
5+
- Diff: [v0.18.0...v0.17.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.17.0...v0.18.0)
6+
17
<a name="v0.17.0"></a>
28
# [v0.17.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.17.0) - 2022-09-08
39
- Format Version: 21

COMMIT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1c8de173238a02abeb5642c25c3cef1eea52ac18
1+
aac7429c17aa558fbd9fb0be093e7bd9ccc73972

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdoc-types"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Nixon Enraght-Moony <nixon.emoony@gmail.com>", "The Rust Project Developers"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

src/lib.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::PathBuf;
99
use serde::{Deserialize, Serialize};
1010

1111
/// rustdoc format-version.
12-
pub const FORMAT_VERSION: u32 = 21;
12+
pub const FORMAT_VERSION: u32 = 22;
1313

1414
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
1515
/// about the language items in the local crate, as well as info about external items to allow
@@ -254,7 +254,7 @@ pub enum ItemEnum {
254254
Macro(String),
255255
ProcMacro(ProcMacro),
256256

257-
PrimitiveType(String),
257+
Primitive(Primitive),
258258

259259
AssocConst {
260260
#[serde(rename = "type")]
@@ -542,12 +542,12 @@ pub enum Term {
542542
#[serde(rename_all = "snake_case")]
543543
#[serde(tag = "kind", content = "inner")]
544544
pub enum Type {
545-
/// Structs, enums, and traits
545+
/// Structs, enums, and unions
546546
ResolvedPath(Path),
547547
DynTrait(DynTrait),
548548
/// Parameterized types
549549
Generic(String),
550-
/// Fixed-size numeric types (plus int/usize/float), char, arrays, slices, and tuples
550+
/// Built in numberic (i*, u*, f*) types, bool, and char
551551
Primitive(String),
552552
/// `extern "ABI" fn`
553553
FunctionPointer(Box<FunctionPointer>),
@@ -709,5 +709,11 @@ pub struct Static {
709709
pub expr: String,
710710
}
711711

712+
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
713+
pub struct Primitive {
714+
pub name: String,
715+
pub impls: Vec<Id>,
716+
}
717+
712718
#[cfg(test)]
713719
mod tests;

0 commit comments

Comments
 (0)