@@ -116,7 +116,7 @@ impl<T: Clean<U>, U> Clean<Vec<U>> for syntax::owned_slice::OwnedSlice<T> {
116
116
}
117
117
}
118
118
119
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
119
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
120
120
pub struct Crate {
121
121
pub name : String ,
122
122
pub src : FsPath ,
@@ -198,7 +198,7 @@ impl<'a, 'tcx> Clean<Crate> for visit_ast::RustdocVisitor<'a, 'tcx> {
198
198
}
199
199
}
200
200
201
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
201
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
202
202
pub struct ExternalCrate {
203
203
pub name : String ,
204
204
pub attrs : Vec < Attribute > ,
@@ -231,7 +231,7 @@ impl Clean<ExternalCrate> for cstore::crate_metadata {
231
231
/// Anything with a source location and set of attributes and, optionally, a
232
232
/// name. That is, anything that can be documented. This doesn't correspond
233
233
/// directly to the AST's concept of an item; it's a strict superset.
234
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
234
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
235
235
pub struct Item {
236
236
/// Stringified span
237
237
pub source : Span ,
@@ -307,7 +307,7 @@ impl Item {
307
307
}
308
308
}
309
309
310
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
310
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
311
311
pub enum ItemEnum {
312
312
StructItem ( Struct ) ,
313
313
EnumItem ( Enum ) ,
@@ -336,7 +336,7 @@ pub enum ItemEnum {
336
336
AssociatedTypeItem ( TyParam ) ,
337
337
}
338
338
339
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
339
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
340
340
pub struct Module {
341
341
pub items : Vec < Item > ,
342
342
pub is_crate : bool ,
@@ -938,7 +938,7 @@ impl<'a, 'tcx> Clean<Generics> for (&'a ty::Generics<'tcx>, subst::ParamSpace) {
938
938
}
939
939
}
940
940
941
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
941
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
942
942
pub struct Method {
943
943
pub generics : Generics ,
944
944
pub self_ : SelfTy ,
@@ -977,7 +977,7 @@ impl Clean<Item> for ast::Method {
977
977
}
978
978
}
979
979
980
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
980
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
981
981
pub struct TyMethod {
982
982
pub unsafety : ast:: Unsafety ,
983
983
pub decl : FnDecl ,
@@ -1015,7 +1015,7 @@ impl Clean<Item> for ast::TypeMethod {
1015
1015
}
1016
1016
}
1017
1017
1018
- #[ derive( Clone , RustcEncodable , RustcDecodable , PartialEq ) ]
1018
+ #[ derive( Clone , RustcEncodable , RustcDecodable , PartialEq , Show ) ]
1019
1019
pub enum SelfTy {
1020
1020
SelfStatic ,
1021
1021
SelfValue ,
@@ -1036,7 +1036,7 @@ impl Clean<SelfTy> for ast::ExplicitSelf_ {
1036
1036
}
1037
1037
}
1038
1038
1039
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1039
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1040
1040
pub struct Function {
1041
1041
pub decl : FnDecl ,
1042
1042
pub generics : Generics ,
@@ -1153,7 +1153,7 @@ impl Clean<FunctionRetTy> for ast::FunctionRetTy {
1153
1153
}
1154
1154
}
1155
1155
1156
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1156
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1157
1157
pub struct Trait {
1158
1158
pub unsafety : ast:: Unsafety ,
1159
1159
pub items : Vec < TraitMethod > ,
@@ -1197,11 +1197,11 @@ impl Clean<PolyTrait> for ast::PolyTraitRef {
1197
1197
1198
1198
/// An item belonging to a trait, whether a method or associated. Could be named
1199
1199
/// TraitItem except that's already taken by an exported enum variant.
1200
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1200
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1201
1201
pub enum TraitMethod {
1202
1202
RequiredMethod ( Item ) ,
1203
1203
ProvidedMethod ( Item ) ,
1204
- TypeTraitItem ( Item ) ,
1204
+ TypeTraitItem ( Item ) , // an associated type
1205
1205
}
1206
1206
1207
1207
impl TraitMethod {
@@ -1242,7 +1242,7 @@ impl Clean<TraitMethod> for ast::TraitItem {
1242
1242
}
1243
1243
}
1244
1244
1245
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1245
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1246
1246
pub enum ImplMethod {
1247
1247
MethodImplItem ( Item ) ,
1248
1248
TypeImplItem ( Item ) ,
@@ -1378,7 +1378,7 @@ pub enum PrimitiveType {
1378
1378
PrimitiveTuple ,
1379
1379
}
1380
1380
1381
- #[ derive( Clone , RustcEncodable , RustcDecodable , Copy ) ]
1381
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Copy , Show ) ]
1382
1382
pub enum TypeKind {
1383
1383
TypeEnum ,
1384
1384
TypeFunction ,
@@ -1621,7 +1621,7 @@ impl Clean<Type> for ast::QPath {
1621
1621
}
1622
1622
}
1623
1623
1624
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1624
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1625
1625
pub enum StructField {
1626
1626
HiddenStructField , // inserted later by strip passes
1627
1627
TypedStructField ( Type ) ,
@@ -1680,7 +1680,7 @@ impl Clean<Option<Visibility>> for ast::Visibility {
1680
1680
}
1681
1681
}
1682
1682
1683
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1683
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1684
1684
pub struct Struct {
1685
1685
pub struct_type : doctree:: StructType ,
1686
1686
pub generics : Generics ,
@@ -1710,7 +1710,7 @@ impl Clean<Item> for doctree::Struct {
1710
1710
/// This is a more limited form of the standard Struct, different in that
1711
1711
/// it lacks the things most items have (name, id, parameterization). Found
1712
1712
/// only as a variant in an enum.
1713
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1713
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1714
1714
pub struct VariantStruct {
1715
1715
pub struct_type : doctree:: StructType ,
1716
1716
pub fields : Vec < Item > ,
@@ -1727,7 +1727,7 @@ impl Clean<VariantStruct> for syntax::ast::StructDef {
1727
1727
}
1728
1728
}
1729
1729
1730
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1730
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1731
1731
pub struct Enum {
1732
1732
pub variants : Vec < Item > ,
1733
1733
pub generics : Generics ,
@@ -1752,7 +1752,7 @@ impl Clean<Item> for doctree::Enum {
1752
1752
}
1753
1753
}
1754
1754
1755
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1755
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1756
1756
pub struct Variant {
1757
1757
pub kind : VariantKind ,
1758
1758
}
@@ -1820,7 +1820,7 @@ impl<'tcx> Clean<Item> for ty::VariantInfo<'tcx> {
1820
1820
}
1821
1821
}
1822
1822
1823
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1823
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1824
1824
pub enum VariantKind {
1825
1825
CLikeVariant ,
1826
1826
TupleVariant ( Vec < Type > ) ,
@@ -1967,7 +1967,7 @@ impl Clean<String> for ast::Name {
1967
1967
}
1968
1968
}
1969
1969
1970
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
1970
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
1971
1971
pub struct Typedef {
1972
1972
pub type_ : Type ,
1973
1973
pub generics : Generics ,
@@ -2080,7 +2080,7 @@ impl Clean<Mutability> for ast::Mutability {
2080
2080
}
2081
2081
}
2082
2082
2083
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2083
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2084
2084
pub struct Impl {
2085
2085
pub generics : Generics ,
2086
2086
pub trait_ : Option < Type > ,
@@ -2118,7 +2118,7 @@ impl Clean<Item> for doctree::Impl {
2118
2118
}
2119
2119
}
2120
2120
2121
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2121
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2122
2122
pub struct ViewItem {
2123
2123
pub inner : ViewItemInner ,
2124
2124
}
@@ -2184,7 +2184,7 @@ impl Clean<Vec<Item>> for ast::ViewItem {
2184
2184
}
2185
2185
}
2186
2186
2187
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2187
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2188
2188
pub enum ViewItemInner {
2189
2189
ExternCrate ( String , Option < String > , ast:: NodeId ) ,
2190
2190
Import ( ViewPath )
@@ -2207,7 +2207,7 @@ impl Clean<ViewItemInner> for ast::ViewItem_ {
2207
2207
}
2208
2208
}
2209
2209
2210
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2210
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2211
2211
pub enum ViewPath {
2212
2212
// use source as str;
2213
2213
SimpleImport ( String , ImportSource ) ,
@@ -2217,7 +2217,7 @@ pub enum ViewPath {
2217
2217
ImportList ( ImportSource , Vec < ViewListIdent > ) ,
2218
2218
}
2219
2219
2220
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2220
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2221
2221
pub struct ImportSource {
2222
2222
pub path : Path ,
2223
2223
pub did : Option < ast:: DefId > ,
@@ -2238,7 +2238,7 @@ impl Clean<ViewPath> for ast::ViewPath {
2238
2238
}
2239
2239
}
2240
2240
2241
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2241
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2242
2242
pub struct ViewListIdent {
2243
2243
pub name : String ,
2244
2244
pub source : Option < ast:: DefId > ,
@@ -2457,7 +2457,7 @@ fn resolve_def(cx: &DocContext, id: ast::NodeId) -> Option<ast::DefId> {
2457
2457
} )
2458
2458
}
2459
2459
2460
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2460
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2461
2461
pub struct Macro {
2462
2462
pub source : String ,
2463
2463
}
@@ -2478,7 +2478,7 @@ impl Clean<Item> for doctree::Macro {
2478
2478
}
2479
2479
}
2480
2480
2481
- #[ derive( Clone , RustcEncodable , RustcDecodable ) ]
2481
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Show ) ]
2482
2482
pub struct Stability {
2483
2483
pub level : attr:: StabilityLevel ,
2484
2484
pub text : String
0 commit comments