Skip to content

Commit f55ff41

Browse files
committed
don't inline report_overlap_conflict
1 parent 1296719 commit f55ff41

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_trait_selection/src/traits/specialize

1 file changed

+5
-0
lines changed

compiler/rustc_trait_selection/src/traits/specialize/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ pub(super) fn specialization_graph_provider(
291291
sg
292292
}
293293

294+
// This function is only used when
295+
// encountering errors and inlining
296+
// it negatively impacts perf.
297+
#[cold]
298+
#[inline(never)]
294299
fn report_overlap_conflict(
295300
tcx: TyCtxt<'_>,
296301
overlap: OverlapError,

0 commit comments

Comments
 (0)