ForeignItemKind

This commit is contained in:
csmoe 2018-07-11 22:56:44 +08:00 committed by Oliver Schneider
parent f12eca47e0
commit 7e5d224472
18 changed files with 60 additions and 61 deletions

View file

@ -143,7 +143,7 @@ pub fn get_static(cx: &CodegenCx, def_id: DefId) -> ValueRef {
}
hir_map::NodeForeignItem(&hir::ForeignItem {
ref attrs, span, node: hir::ForeignItemStatic(..), ..
ref attrs, span, node: hir::ForeignItemKind::Static(..), ..
}) => {
let g = if let Some(linkage) = cx.tcx.codegen_fn_attrs(def_id).linkage {
// If this is a static with a linkage specified, then we need to handle