Move share_generics getter onto options directly
This commit is contained in:
parent
5fcef251d3
commit
a9093a4dd8
7 changed files with 25 additions and 25 deletions
|
|
@ -242,7 +242,7 @@ fn exported_symbols_provider_local<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
symbols.push((exported_symbol, SymbolExportLevel::Rust));
|
||||
}
|
||||
|
||||
if tcx.share_generics() && tcx.local_crate_exports_generics() {
|
||||
if tcx.sess.opts.share_generics() && tcx.local_crate_exports_generics() {
|
||||
use rustc::mir::mono::{Linkage, Visibility, MonoItem};
|
||||
use rustc::ty::InstanceDef;
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ pub fn get_fn(
|
|||
// This is a monomorphization. Its expected visibility depends
|
||||
// on whether we are in share-generics mode.
|
||||
|
||||
if cx.tcx.share_generics() {
|
||||
if cx.tcx.sess.opts.share_generics() {
|
||||
// We are in share_generics mode.
|
||||
|
||||
if instance_def_id.is_local() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue