rustdoc-json-types: ty -> type_

Fixes #94889
This commit is contained in:
Nixon Enraght-Moony
2022-03-13 23:13:57 +00:00
parent 21b0325c68
commit b526d8f27c
4 changed files with 25 additions and 11 deletions

View File

@@ -378,7 +378,8 @@ pub enum GenericParamDefKind {
synthetic: bool,
},
Const {
ty: Type,
#[serde(rename = "type")]
type_: Type,
default: Option<String>,
},
}
@@ -386,9 +387,19 @@ pub enum GenericParamDefKind {
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "snake_case")]
pub enum WherePredicate {
BoundPredicate { ty: Type, bounds: Vec<GenericBound> },
RegionPredicate { lifetime: String, bounds: Vec<GenericBound> },
EqPredicate { lhs: Type, rhs: Term },
BoundPredicate {
#[serde(rename = "type")]
type_: Type,
bounds: Vec<GenericBound>,
},
RegionPredicate {
lifetime: String,
bounds: Vec<GenericBound>,
},
EqPredicate {
lhs: Type,
rhs: Term,
},
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]