Rustup to rustc 1.41.0-nightly (0c987c5c0 2019-11-23)

This commit is contained in:
bjorn3 2019-11-24 16:30:15 +01:00
parent e9d3569e08
commit c3df8b185b

View File

@ -356,7 +356,12 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut Module<impl Backend>, cx: &mu
// Don't push a `TodoItem::Static` here, as it will cause statics used by
// multiple crates to be duplicated between them. It isn't necessary anyway,
// as it will get pushed by `codegen_static` when necessary.
data_id_for_static(tcx, module, def_id, Linkage::Import)
data_id_for_static(
tcx,
module,
def_id,
crate::linkage::get_static_ref_linkage(tcx, def_id),
)
}
};