diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-26 13:20:47 -0600 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-08-04 06:54:36 -0600 |
| commit | a9093a4dd80e617d50b26647ec2adcb727d2dd29 (patch) | |
| tree | e0eacc392922f831bd11a00c6d345bad50535dda /src/librustc_codegen_llvm/back | |
| parent | 5fcef251d3db36c334535d8f5d96b5b44f5eb75e (diff) | |
| download | rust-a9093a4dd80e617d50b26647ec2adcb727d2dd29.tar.gz rust-a9093a4dd80e617d50b26647ec2adcb727d2dd29.zip | |
Move share_generics getter onto options directly
Diffstat (limited to 'src/librustc_codegen_llvm/back')
| -rw-r--r-- | src/librustc_codegen_llvm/back/symbol_export.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/symbol_export.rs b/src/librustc_codegen_llvm/back/symbol_export.rs index 5ce0d45a9bc..02434b7be0b 100644 --- a/src/librustc_codegen_llvm/back/symbol_export.rs +++ b/src/librustc_codegen_llvm/back/symbol_export.rs @@ -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; |
