X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_typeck%2Fcollect.rs;h=194710a46fbceb388f30665b12aabe1c351f46ea;hb=46750d0409a9c3ba5214aa20ccb0c9bdbf09ea7e;hp=31f7f3174b8af3cf13152ea0b98b8deadf56af44;hpb=a5225cbe92d962dfed922b434a21f8474f303da2;p=rust.git diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 31f7f3174b8..194710a46fb 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -1015,7 +1015,7 @@ fn convert_item(ccx: &CrateCtxt, it: &hir::Item) { } if !struct_def.is_struct() { - convert_variant_ctor(tcx, struct_def.id, variant, scheme, predicates); + convert_variant_ctor(tcx, struct_def.id(), variant, scheme, predicates); } }, hir::ItemTy(_, ref generics) => { @@ -1075,7 +1075,7 @@ fn convert_enum_variant_types<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>, // an item. convert_variant_ctor( ccx.tcx, - variant.node.data.id, + variant.node.data.id(), ty_variant, scheme.clone(), predicates.clone() @@ -1126,7 +1126,7 @@ fn convert_struct_def<'tcx>(tcx: &ty::ctxt<'tcx>, let did = tcx.map.local_def_id(it.id); let ctor_id = if !def.is_struct() { - tcx.map.local_def_id(def.id) + tcx.map.local_def_id(def.id()) } else { did }; @@ -1209,7 +1209,7 @@ fn convert_enum_variant<'tcx>(tcx: &ty::ctxt<'tcx>, disr: ty::Disr) -> ty::VariantDefData<'tcx, 'tcx> { - let did = tcx.map.local_def_id(v.node.data.id); + let did = tcx.map.local_def_id(v.node.data.id()); let name = v.node.name; convert_struct_variant(tcx, did, name, disr, &v.node.data) }