@@ -29,13 +29,13 @@ use std::num::NonZeroU32;
2929
3030#[ derive( PartialEq ) ]
3131enum AnnotationKind {
32- // Annotation is required if not inherited from unstable parents
32+ /// Annotation is required if not inherited from unstable parents.
3333 Required ,
34- // Annotation is useless, reject it
34+ /// Annotation is useless, reject it.
3535 Prohibited ,
36- // Deprecation annotation is useless, reject it. (Stability attribute is still required.)
36+ /// Deprecation annotation is useless, reject it. (Stability attribute is still required.)
3737 DeprecationProhibited ,
38- // Annotation itself is useless, but it can be propagated to children
38+ /// Annotation itself is useless, but it can be propagated to children.
3939 Container ,
4040}
4141
@@ -83,7 +83,7 @@ impl InheritStability {
8383 }
8484}
8585
86- // A private tree-walker for producing an Index.
86+ /// A private tree-walker for producing an ` Index` .
8787struct Annotator < ' a , ' tcx > {
8888 tcx : TyCtxt < ' tcx > ,
8989 index : & ' a mut Index ,
@@ -94,9 +94,9 @@ struct Annotator<'a, 'tcx> {
9494}
9595
9696impl < ' a , ' tcx > Annotator < ' a , ' tcx > {
97- // Determine the stability for a node based on its attributes and inherited
98- // stability. The stability is recorded in the index and used as the parent.
99- // If the node is a function, `fn_sig` is its signature
97+ /// Determine the stability for a node based on its attributes and inherited stability. The
98+ /// stability is recorded in the index and used as the parent. If the node is a function,
99+ /// `fn_sig` is its signature.
100100 fn annotate < F > (
101101 & mut self ,
102102 def_id : LocalDefId ,
0 commit comments