rustc_trait_selection::error_reporting::traits

Function to_pretty_impl_header

source
pub(crate) fn to_pretty_impl_header(
    tcx: TyCtxt<'_>,
    impl_def_id: DefId,
) -> Option<String>
Expand description

Recovers the “impl X for Y” signature from impl_def_id and returns it as a string.