about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2018-07-26 13:20:47 -0600
committerMark Rousskov <mark.simulacrum@gmail.com>2018-08-04 06:54:36 -0600
commita9093a4dd80e617d50b26647ec2adcb727d2dd29 (patch)
treee0eacc392922f831bd11a00c6d345bad50535dda /src/librustc_codegen_utils
parent5fcef251d3db36c334535d8f5d96b5b44f5eb75e (diff)
downloadrust-a9093a4dd80e617d50b26647ec2adcb727d2dd29.tar.gz
rust-a9093a4dd80e617d50b26647ec2adcb727d2dd29.zip
Move share_generics getter onto options directly
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs
index ac71ecff964..d834a6502b2 100644
--- a/src/librustc_codegen_utils/symbol_names.rs
+++ b/src/librustc_codegen_utils/symbol_names.rs
@@ -201,7 +201,7 @@ fn get_symbol_hash<'a, 'tcx>(
 
         if avoid_cross_crate_conflicts {
             let instantiating_crate = if is_generic {
-                if !def_id.is_local() && tcx.share_generics() {
+                if !def_id.is_local() && tcx.sess.opts.share_generics() {
                     // If we are re-using a monomorphization from another crate,
                     // we have to compute the symbol hash accordingly.
                     let upstream_monomorphizations = tcx.upstream_monomorphizations_for(def_id);