Skip to content

Commit 28d2353

Browse files
committed
Update some comments post the side channel removal
1 parent 895fa9c commit 28d2353

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,8 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
705705
}))
706706
}
707707

708-
/// Returns:
709-
/// - None if no associated item was found
710-
/// - Some((_, _, Some(_))) if an item was found and should go through a side channel
711-
/// - Some((_, _, None)) otherwise
708+
/// Resolve an associated item, returning its containing page's `Res`
709+
/// and the fragment targeting the associated item on its page.
712710
fn resolve_associated_item(
713711
&mut self,
714712
root_res: Res,
@@ -1475,7 +1473,6 @@ impl LinkCollector<'_, '_> {
14751473
diag: DiagnosticInfo<'_>,
14761474
cache_resolution_failure: bool,
14771475
) -> Option<(Res, Option<UrlFragment>)> {
1478-
// Try to look up both the result and the corresponding side channel value
14791476
if let Some(ref cached) = self.visited_links.get(&key) {
14801477
match cached {
14811478
Some(cached) => {

0 commit comments

Comments
 (0)