1
Fork 0

Don't internalize generics that are re-exported

This commit is contained in:
Michael Woerister 2018-03-13 14:21:00 +01:00
parent a1a986cfae
commit 2d2cf0306c

View file

@ -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