Merging Codegen Units by Overlap: How rustc Decides What Goes in the Same .o File
rustc’s CGU partitioning places items by their characteristic DefId and then merges units by inlined-item overlap, which keeps duplicated inlined code to a minimum.
rustc’s CGU partitioning places items by their characteristic DefId and then merges units by inlined-item overlap, which keeps duplicated inlined code to a minimum.