Skip to content

Commit 933c7f0

Browse files
committed
1 parent ed26026 commit 933c7f0

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<a name="v0.21.0"></a>
2+
# [v0.21.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.21.0) - 2023-05-13
3+
- Format Version: 25
4+
- Upstream Commit: [`61e1eda6db042413cf1794407fd10b7edc90059d`](https://github.com/rust-lang/rust/commit/61e1eda6db042413cf1794407fd10b7edc90059d)
5+
- Diff: [v0.21.0...v0.20.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.20.0...v0.21.0)
6+
17
<a name="v0.20.0"></a>
28
# [v0.20.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.20.0) - 2023-01-03
39
- Format Version: 24

COMMIT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
52c71e6e2802a50d34ac4a3e96fc2636a3023eb2
1+
61e1eda6db042413cf1794407fd10b7edc90059d

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.20.0"
3+
version = "0.21.0"
44
authors = ["Nixon Enraght-Moony <[email protected]>", "The Rust Project Developers"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

src/lib.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
88
use std::path::PathBuf;
99

1010
/// rustdoc format-version.
11-
pub const FORMAT_VERSION: u32 = 24;
11+
pub const FORMAT_VERSION: u32 = 25;
1212

1313
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
1414
/// about the language items in the local crate, as well as info about external items to allow
@@ -550,7 +550,7 @@ pub enum Type {
550550
DynTrait(DynTrait),
551551
/// Parameterized types
552552
Generic(String),
553-
/// Built in numberic (i*, u*, f*) types, bool, and char
553+
/// Built in numeric (i*, u*, f*) types, bool, and char
554554
Primitive(String),
555555
/// `extern "ABI" fn`
556556
FunctionPointer(Box<FunctionPointer>),
@@ -581,13 +581,15 @@ pub enum Type {
581581
#[serde(rename = "type")]
582582
type_: Box<Type>,
583583
},
584-
/// `<Type as Trait>::Name` or associated types like `T::Item` where `T: Iterator`
584+
/// Associated types like `<Type as Trait>::Name` and `T::Item` where
585+
/// `T: Iterator` or inherent associated types like `Struct::Name`.
585586
QualifiedPath {
586587
name: String,
587588
args: Box<GenericArgs>,
588589
self_type: Box<Type>,
590+
/// `None` iff this is an *inherent* associated type.
589591
#[serde(rename = "trait")]
590-
trait_: Path,
592+
trait_: Option<Path>,
591593
},
592594
}
593595

0 commit comments

Comments
 (0)