don't inline report_overlap_conflict

This commit is contained in:
lcnr 2021-10-23 21:05:03 +02:00
parent 1296719c06
commit f55ff4103f

View File

@ -291,6 +291,11 @@ pub(super) fn specialization_graph_provider(
sg
}
// This function is only used when
// encountering errors and inlining
// it negatively impacts perf.
#[cold]
#[inline(never)]
fn report_overlap_conflict(
tcx: TyCtxt<'_>,
overlap: OverlapError,