Skip to content

Commit

Permalink
resolve: Add comments to traits_in_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Aug 23, 2020
1 parent da921e9 commit d77eff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,9 @@ impl<'a> Resolver<'a> {
})
}

/// This is equivalent to `get_traits_in_module_containing_item`, but without filtering by the associated item.
///
/// This is used by rustdoc for intra-doc links.
pub fn traits_in_scope(&mut self, module_id: DefId) -> Vec<TraitCandidate> {
let module = self.get_module(module_id);
module.ensure_traits(self);
Expand Down

0 comments on commit d77eff2

Please sign in to comment.