@@ -29,13 +29,13 @@ use std::num::NonZeroU32;
29
29
30
30
#[ derive( PartialEq ) ]
31
31
enum AnnotationKind {
32
- // Annotation is required if not inherited from unstable parents
32
+ /// Annotation is required if not inherited from unstable parents.
33
33
Required ,
34
- // Annotation is useless, reject it
34
+ /// Annotation is useless, reject it.
35
35
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.)
37
37
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.
39
39
Container ,
40
40
}
41
41
@@ -83,7 +83,7 @@ impl InheritStability {
83
83
}
84
84
}
85
85
86
- // A private tree-walker for producing an Index.
86
+ /// A private tree-walker for producing an ` Index` .
87
87
struct Annotator < ' a , ' tcx > {
88
88
tcx : TyCtxt < ' tcx > ,
89
89
index : & ' a mut Index ,
@@ -94,9 +94,9 @@ struct Annotator<'a, 'tcx> {
94
94
}
95
95
96
96
impl < ' 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.
100
100
fn annotate < F > (
101
101
& mut self ,
102
102
def_id : LocalDefId ,
0 commit comments