Don't internalize generics that are re-exported
This commit is contained in:
parent
a1a986cfae
commit
2d2cf0306c
1 changed files with 1 additions and 0 deletions
|
@ -419,6 +419,7 @@ fn place_root_translation_items<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
// If it is a upstream monomorphization
|
||||
// and we export generics, we must make
|
||||
// it available to downstream crates.
|
||||
can_be_internalized = false;
|
||||
default_visibility(def_id, true)
|
||||
} else {
|
||||
Visibility::Hidden
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue