Skip to content

Commit

Permalink
Don't internalize generics that are re-exported
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Apr 6, 2018
1 parent a1a986c commit 2d2cf03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/monomorphize/partitioning.rs
Expand Up @@ -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
Expand Down

0 comments on commit 2d2cf03

Please sign in to comment.