@@ -9,7 +9,7 @@ use std::path::PathBuf;
99use 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" ) ]
388389pub 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