Skip to content

Commit d189587

Browse files
Don't internalize generics that are re-exported
1 parent b15bcca commit d189587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/monomorphize/partitioning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ fn place_root_translation_items<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
419419
// If it is a upstream monomorphization
420420
// and we export generics, we must make
421421
// it available to downstream crates.
422+
can_be_internalized = false;
422423
default_visibility(def_id, true)
423424
} else {
424425
Visibility::Hidden

0 commit comments

Comments
 (0)