From 75d6522b9a4992b33b69e8fe76ae9be999dd66d3 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Thu, 15 Sep 2016 00:51:46 +0300 Subject: Eliminate ty::VariantKind in favor of def::CtorKind --- src/librustc_resolve/build_reduced_graph.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_resolve') diff --git a/src/librustc_resolve/build_reduced_graph.rs b/src/librustc_resolve/build_reduced_graph.rs index f689ed6a41c..ea894556b7f 100644 --- a/src/librustc_resolve/build_reduced_graph.rs +++ b/src/librustc_resolve/build_reduced_graph.rs @@ -302,7 +302,7 @@ impl<'b> Resolver<'b> { // in the value namespace as well. if !struct_def.is_struct() { let ctor_def = Def::StructCtor(self.definitions.local_def_id(struct_def.id()), - CtorKind::from_vdata(struct_def)); + CtorKind::from_ast(struct_def)); self.define(parent, name, ValueNS, (ctor_def, sp, vis)); } @@ -359,7 +359,7 @@ impl<'b> Resolver<'b> { // Define a constructor name in the value namespace. // Braced variants, unlike structs, generate unusable names in // value namespace, they are reserved for possible future use. - let ctor_kind = CtorKind::from_vdata(&variant.node.data); + let ctor_kind = CtorKind::from_ast(&variant.node.data); let ctor_def = Def::VariantCtor(def_id, ctor_kind); self.define(parent, name, ValueNS, (ctor_def, variant.span, vis)); } -- cgit 1.4.1-3-g733a5