Rename Item.node to Item.kind

This commit is contained in:
varkor 2019-09-26 17:51:36 +01:00
parent 21bf983acb
commit 7bc94cc3c2
99 changed files with 279 additions and 278 deletions

View file

@ -230,7 +230,7 @@ impl CodegenCx<'ll, 'tcx> {
let llty = self.layout_of(ty).llvm_type(self);
let (g, attrs) = match self.tcx.hir().get(id) {
Node::Item(&hir::Item {
ref attrs, span, node: hir::ItemKind::Static(..), ..
ref attrs, span, kind: hir::ItemKind::Static(..), ..
}) => {
let sym_str = sym.as_str();
if self.get_declared_value(&sym_str).is_some() {