@@ -9,7 +9,7 @@ use std::path::PathBuf;
9
9
use serde:: { Deserialize , Serialize } ;
10
10
11
11
/// rustdoc format-version.
12
- pub const FORMAT_VERSION : u32 = 13 ;
12
+ pub const FORMAT_VERSION : u32 = 14 ;
13
13
14
14
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
15
15
/// about the language items in the local crate, as well as info about external items to allow
@@ -378,17 +378,28 @@ pub enum GenericParamDefKind {
378
378
synthetic : bool ,
379
379
} ,
380
380
Const {
381
- ty : Type ,
381
+ #[ serde( rename = "type" ) ]
382
+ type_ : Type ,
382
383
default : Option < String > ,
383
384
} ,
384
385
}
385
386
386
387
#[ derive( Clone , Debug , Serialize , Deserialize , PartialEq ) ]
387
388
#[ serde( rename_all = "snake_case" ) ]
388
389
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
+ } ,
392
403
}
393
404
394
405
#[ derive( Clone , Debug , Serialize , Deserialize , PartialEq ) ]
@@ -494,7 +505,7 @@ pub struct Trait {
494
505
pub items : Vec < Id > ,
495
506
pub generics : Generics ,
496
507
pub bounds : Vec < GenericBound > ,
497
- pub implementors : Vec < Id > ,
508
+ pub implementations : Vec < Id > ,
498
509
}
499
510
500
511
#[ derive( Clone , Debug , Serialize , Deserialize , PartialEq ) ]
0 commit comments