clippy_utils

# Function def_path_res_with_base

source

    pub fn def_path_res_with_base(
        tcx: TyCtxt<'_>,
        base: Vec<Res>,
        path: &[&str],
    ) -> Vec<Res>

Expand description

Resolves a def path like `vec::Vec` with the base `std`.

This is lighter than `def_path_res`, and should be called with `find_crates` looking up items from the same crate repeatedly, although should still be used sparingly.