pub fn lookup_path(tcx: TyCtxt<'_>, ns: PathNS, path: &[Symbol]) -> Vec<DefId>
Expand description
Resolves a def path like std::vec::Vec
.
Typically it will return one DefId
or none, but in some situations there can be multiple:
memchr::memchr
could return the functions from both memchr 1.0 and memchr 2.0alloc::boxed::Box::downcast
would return a function for each of the different inherent impls (1, 2, 3)
This function is expensive and should be used sparingly.