pub fn shrunk_instance_name<'tcx>(
tcx: TyCtxt<'tcx>,
instance: Instance<'tcx>,
) -> (String, Option<PathBuf>)
Expand description
Format instance name that is already known to be too long for rustc. Show only the first 2 types if it is longer than 32 characters to avoid blasting the user’s terminal with thousands of lines of type-name.
If the type name is longer than before+after, it will be written to a file.