Skip to content

Commit

Permalink
Add doc-comment for kind_side_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Aug 7, 2020
1 parent 17263bc commit 9914f73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ struct LinkCollector<'a, 'tcx> {
cx: &'a DocContext<'tcx>,
// NOTE: this may not necessarily be a module in the current crate
mod_ids: Vec<DefId>,
/// This is used to store the kind of associated items,
/// because `clean` and the disambiguator code expect them to be different.
/// See the code for associated items on inherent impls for details.
kind_side_channel: Cell<Option<DefKind>>,
}

Expand Down

0 comments on commit 9914f73

Please sign in to comment.