Function clippy_utils::def_path_res

source ·
pub fn def_path_res(
    cx: &LateContext<'_>,
    path: &[&str],
    namespace_hint: Option<Namespace>
) -> Res
Expand description

Resolves a def path like std::vec::Vec. namespace_hint can be supplied to disambiguate between std::vec the module and std::vec the macro

This function is expensive and should be used sparingly.