mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Don't internalize generics that are re-exported
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user