Skip to content

Commit 0f04ab2

Browse files
committed
v0.10.0
1 parent 7dce6e8 commit 0f04ab2

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

COMMIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aa763fcf421e627455aa1de16df1292c8e1bcb9d
1+
a5c0b1470cc48e665eabf29881dd87438973ab97

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdoc-types"
3-
version = "0.9.0"
3+
version = "0.10.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

Lines changed: 17 additions & 6 deletions
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 = 13;
12+
pub const FORMAT_VERSION: u32 = 14;
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
@@ -378,17 +378,28 @@ pub enum GenericParamDefKind {
378378
synthetic: bool,
379379
},
380380
Const {
381-
ty: Type,
381+
#[serde(rename = "type")]
382+
type_: Type,
382383
default: Option<String>,
383384
},
384385
}
385386

386387
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
387388
#[serde(rename_all = "snake_case")]
388389
pub enum WherePredicate {
389-
BoundPredicate { ty: Type, bounds: Vec<GenericBound> },
390-
RegionPredicate { lifetime: String, bounds: Vec<GenericBound> },
391-
EqPredicate { lhs: Type, rhs: Term },
390+
BoundPredicate {
391+
#[serde(rename = "type")]
392+
type_: Type,
393+
bounds: Vec<GenericBound>,
394+
},
395+
RegionPredicate {
396+
lifetime: String,
397+
bounds: Vec<GenericBound>,
398+
},
399+
EqPredicate {
400+
lhs: Type,
401+
rhs: Term,
402+
},
392403
}
393404

394405
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
@@ -494,7 +505,7 @@ pub struct Trait {
494505
pub items: Vec<Id>,
495506
pub generics: Generics,
496507
pub bounds: Vec<GenericBound>,
497-
pub implementors: Vec<Id>,
508+
pub implementations: Vec<Id>,
498509
}
499510

500511
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]

0 commit comments

Comments
 (0)