@@ -253,7 +253,7 @@ pub struct Substructure<'a> {
253
253
pub type_ident : Ident ,
254
254
/// ident of the method
255
255
pub method_ident : Ident ,
256
- /// dereferenced access to any Self or Ptr(Self, _) arguments
256
+ /// dereferenced access to any ` Self` or ` Ptr(Self, _)` arguments
257
257
pub self_args : & ' a [ P < Expr > ] ,
258
258
/// verbatim access to any other arguments
259
259
pub nonself_args : & ' a [ P < Expr > ] ,
@@ -270,7 +270,7 @@ pub struct FieldInfo {
270
270
/// (specifically, a reference to it).
271
271
pub self_ : P < Expr > ,
272
272
/// The expressions corresponding to references to this field in
273
- /// the other Self arguments.
273
+ /// the other ` Self` arguments.
274
274
pub other : Vec < P < Expr > > ,
275
275
}
276
276
@@ -291,17 +291,17 @@ pub enum SubstructureFields<'a> {
291
291
/// variant.
292
292
EnumMatching ( uint , & ' a ast:: Variant , Vec < FieldInfo > ) ,
293
293
294
- /// non -matching variants of the enum, but with all state hidden from
295
- /// the consequent code. The first component holds Idents for all of
296
- /// the Self arguments; the second component is a slice of all of the
294
+ /// Non -matching variants of the enum, but with all state hidden from
295
+ /// the consequent code. The first component holds `Ident`s for all of
296
+ /// the ` Self` arguments; the second component is a slice of all of the
297
297
/// variants for the enum itself, and the third component is a list of
298
- /// Idents bound to the variant index values for each of the actual
299
- /// input Self arguments.
298
+ /// `Ident`s bound to the variant index values for each of the actual
299
+ /// input ` Self` arguments.
300
300
EnumNonMatchingCollapsed ( Vec < Ident > , & ' a [ P < ast:: Variant > ] , & ' a [ Ident ] ) ,
301
301
302
- /// A static method where Self is a struct.
302
+ /// A static method where ` Self` is a struct.
303
303
StaticStruct ( & ' a ast:: StructDef , StaticFields ) ,
304
- /// A static method where Self is an enum.
304
+ /// A static method where ` Self` is an enum.
305
305
StaticEnum ( & ' a ast:: EnumDef , Vec < ( Ident , Span , StaticFields ) > ) ,
306
306
}
307
307
@@ -313,10 +313,10 @@ pub type CombineSubstructureFunc<'a> =
313
313
|& mut ExtCtxt , Span , & Substructure |: ' a -> P <Expr >;
314
314
315
315
/// Deal with non-matching enum variants. The tuple is a list of
316
- /// identifiers ( one for each Self argument , which could be any of the
316
+ /// identifiers ( one for each ` Self ` argument , which could be any of the
317
317
/// variants since they have been collapsed together) and the identifiers
318
- /// holding the variant index value for each of the Self arguments. The
319
- /// last argument is all the non-Self args of the method being derived.
318
+ /// holding the variant index value for each of the ` Self` arguments. The
319
+ /// last argument is all the non-` Self` args of the method being derived.
320
320
pub type EnumNonMatchCollapsedFunc < ' a > =
321
321
|& mut ExtCtxt ,
322
322
Span ,
@@ -370,7 +370,7 @@ impl<'a> TraitDef<'a> {
370
370
/// 'z, A, ..., Z>`, creates an impl like:
371
371
///
372
372
/// ```ignore
373
- /// impl<'a, ..., 'z, A:Tr B1 B2, ..., Z: Tr B1 B2> Tr for T<A, ..., Z> { ... }
373
+ /// impl<'a, ..., 'z, A:Tr B1 B2, ..., Z: Tr B1 B2> Tr for T<A, ..., Z> { ... }
374
374
/// ```
375
375
///
376
376
/// where B1, B2, ... are the bounds given by `bounds_paths`.'
0 commit comments