Skip to content

Commit 9914f73

Browse files
committed
Add doc-comment for kind_side_channel
1 parent 17263bc commit 9914f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ struct LinkCollector<'a, 'tcx> {
6363
cx: &'a DocContext<'tcx>,
6464
// NOTE: this may not necessarily be a module in the current crate
6565
mod_ids: Vec<DefId>,
66+
/// This is used to store the kind of associated items,
67+
/// because `clean` and the disambiguator code expect them to be different.
68+
/// See the code for associated items on inherent impls for details.
6669
kind_side_channel: Cell<Option<DefKind>>,
6770
}
6871

0 commit comments

Comments
 (0)