Skip to content

Commit d77eff2

Browse files
committed
resolve: Add comments to traits_in_scope
1 parent da921e9 commit d77eff2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_resolve/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3125,6 +3125,9 @@ impl<'a> Resolver<'a> {
31253125
})
31263126
}
31273127

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

0 commit comments

Comments
 (0)