@@ -253,7 +253,7 @@ pub struct Substructure<'a> {
253253 pub type_ident : Ident ,
254254 /// ident of the method
255255 pub method_ident : Ident ,
256- /// dereferenced access to any Self or Ptr(Self, _) arguments
256+ /// dereferenced access to any ` Self` or ` Ptr(Self, _)` arguments
257257 pub self_args : & ' a [ P < Expr > ] ,
258258 /// verbatim access to any other arguments
259259 pub nonself_args : & ' a [ P < Expr > ] ,
@@ -270,7 +270,7 @@ pub struct FieldInfo {
270270 /// (specifically, a reference to it).
271271 pub self_ : P < Expr > ,
272272 /// The expressions corresponding to references to this field in
273- /// the other Self arguments.
273+ /// the other ` Self` arguments.
274274 pub other : Vec < P < Expr > > ,
275275}
276276
@@ -291,17 +291,17 @@ pub enum SubstructureFields<'a> {
291291 /// variant.
292292 EnumMatching ( uint , & ' a ast:: Variant , Vec < FieldInfo > ) ,
293293
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
297297 /// 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.
300300 EnumNonMatchingCollapsed ( Vec < Ident > , & ' a [ P < ast:: Variant > ] , & ' a [ Ident ] ) ,
301301
302- /// A static method where Self is a struct.
302+ /// A static method where ` Self` is a struct.
303303 StaticStruct ( & ' a ast:: StructDef , StaticFields ) ,
304- /// A static method where Self is an enum.
304+ /// A static method where ` Self` is an enum.
305305 StaticEnum ( & ' a ast:: EnumDef , Vec < ( Ident , Span , StaticFields ) > ) ,
306306}
307307
@@ -313,10 +313,10 @@ pub type CombineSubstructureFunc<'a> =
313313 |& mut ExtCtxt , Span , & Substructure |: ' a -> P <Expr >;
314314
315315/// 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
317317/// 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.
320320 pub type EnumNonMatchCollapsedFunc < ' a > =
321321 |& mut ExtCtxt ,
322322 Span ,
@@ -370,7 +370,7 @@ impl<'a> TraitDef<'a> {
370370 /// 'z, A, ..., Z>`, creates an impl like:
371371 ///
372372 /// ```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> { ... }
374374 /// ```
375375 ///
376376 /// where B1, B2, ... are the bounds given by `bounds_paths`.'
0 commit comments