clippy_utils

Function get_path_from_caller_to_method_type

source
pub fn get_path_from_caller_to_method_type<'tcx>(
    tcx: TyCtxt<'tcx>,
    from: LocalDefId,
    method: DefId,
    args: GenericArgsRef<'tcx>,
) -> String
Expand description

Produces a path from a local caller to the type of the called method. Suitable for user output/suggestions.

Returned path can be either absolute (for methods defined non-locally), or relative (for local methods).